diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 19:43:26 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-26 19:43:26 +0000 |
commit | 3050d97eb83cfdfb4d04a51231acba47e6addf1c (patch) | |
tree | 4337d69086ce7d870214e7e5f6a028f8b417521e /src/input/librtsp/rtsp_session.c | |
parent | ae2a2a8e08ab3140d5c7ee3a5f33e7db81f76b09 (diff) | |
download | xine-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/librtsp/rtsp_session.c')
-rw-r--r-- | src/input/librtsp/rtsp_session.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/input/librtsp/rtsp_session.c b/src/input/librtsp/rtsp_session.c index 50cd03664..e49a06b08 100644 --- a/src/input/librtsp/rtsp_session.c +++ b/src/input/librtsp/rtsp_session.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: rtsp_session.c,v 1.11 2003/06/02 21:22:00 jstembridge Exp $ + * $Id: rtsp_session.c,v 1.12 2003/11/26 19:43:31 f1rmb Exp $ * * high level interface to rtsp servers. */ @@ -32,15 +32,18 @@ #include <stdlib.h> #include <string.h> +#define LOG_MODULE "rtsp_session" +#define LOG_VERBOSE +/* +#define LOG +*/ + #include "rtsp.h" #include "rtsp_session.h" #include "real.h" #include "rmff.h" #include "asmrp.h" - -/* -#define LOG -*/ +#include "xineutils.h" #define BUF_SIZE 4096 #define HEADER_SIZE 4096 @@ -152,9 +155,8 @@ int rtsp_session_read (rtsp_session_t *this, char *data, int len) { fill = this->recv_size; if (this->recv_size == 0) { -#ifdef LOG - printf ("librtsp: %d of %d bytes provided\n", len-to_copy, len); -#endif + lprintf ("%d of %d bytes provided\n", len-to_copy, len); + return len-to_copy; } } @@ -162,9 +164,7 @@ int rtsp_session_read (rtsp_session_t *this, char *data, int len) { memcpy(dest, source, to_copy); this->recv_read += to_copy; -#ifdef LOG - printf ("librtsp: %d bytes provided\n", len); -#endif + lprintf ("%d bytes provided\n", len); return len; } |