summaryrefslogtreecommitdiff
path: root/src/input/input_rtsp.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-26 19:43:26 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-11-26 19:43:26 +0000
commit3050d97eb83cfdfb4d04a51231acba47e6addf1c (patch)
tree4337d69086ce7d870214e7e5f6a028f8b417521e /src/input/input_rtsp.c
parentae2a2a8e08ab3140d5c7ee3a5f33e7db81f76b09 (diff)
downloadxine-lib-3050d97eb83cfdfb4d04a51231acba47e6addf1c.tar.gz
xine-lib-3050d97eb83cfdfb4d04a51231acba47e6addf1c.tar.bz2
lprintf cleanup, pass I.
CVS patchset: 5796 CVS date: 2003/11/26 19:43:26
Diffstat (limited to 'src/input/input_rtsp.c')
-rw-r--r--src/input/input_rtsp.c34
1 files changed, 12 insertions, 22 deletions
diff --git a/src/input/input_rtsp.c b/src/input/input_rtsp.c
index 41e27c437..671bff710 100644
--- a/src/input/input_rtsp.c
+++ b/src/input/input_rtsp.c
@@ -35,6 +35,12 @@
#include <fcntl.h>
#include "bswap.h"
+#define LOG_MODULE "input_rtsp"
+#define LOG_VERBOSE
+/*
+#define LOG
+*/
+
#include "xine_internal.h"
#include "xineutils.h"
#include "input_plugin.h"
@@ -42,10 +48,6 @@
#include "librtsp/rtsp_session.h"
#include "net_buf_ctrl.h"
-/*
-#define LOG
-*/
-
#define BUFSIZE 1025
#if !defined(NDELAY) && defined(O_NDELAY)
@@ -83,10 +85,7 @@ static off_t rtsp_plugin_read (input_plugin_t *this_gen,
rtsp_input_plugin_t *this = (rtsp_input_plugin_t *) this_gen;
off_t n;
-#ifdef LOG
- printf ("rtsp_plugin_read: %lld bytes ...\n",
- len);
-#endif
+ lprintf ("rtsp_plugin_read: %lld bytes ...\n", len);
nbc_check_buffers (this->nbc);
@@ -102,10 +101,7 @@ static buf_element_t *rtsp_plugin_read_block (input_plugin_t *this_gen,
buf_element_t *buf = fifo->buffer_pool_alloc (fifo);
int total_bytes;
-#ifdef LOG
- printf ("rtsp_plugin_read_block: %lld bytes...\n",
- todo);
-#endif
+ lprintf ("rtsp_plugin_read_block: %lld bytes...\n", todo);
buf->content = buf->mem;
buf->type = BUF_DEMUX_BLOCK;
@@ -126,10 +122,7 @@ static off_t rtsp_plugin_seek (input_plugin_t *this_gen, off_t offset, int origi
rtsp_input_plugin_t *this = (rtsp_input_plugin_t *) this_gen;
-#ifdef LOG
- printf ("input_rtsp: seek %lld bytes, origin %d\n",
- offset, origin);
-#endif
+ lprintf ("seek %lld bytes, origin %d\n", offset, origin);
/* only realtive forward-seeking is implemented */
@@ -221,16 +214,13 @@ static int rtsp_plugin_open (input_plugin_t *this_gen) {
rtsp_session_t *rtsp;
-#ifdef LOG
- printf ("input_rtsp: trying to open '%s'\n", this->mrl);
-#endif
+ lprintf ("trying to open '%s'\n", this->mrl);
rtsp = rtsp_session_start(this->stream,this->mrl);
if (!rtsp) {
-#ifdef LOG
- printf ("input_rtsp: returning null.\n");
-#endif
+ lprintf ("returning null.\n");
+
return 0;
}