From 3050d97eb83cfdfb4d04a51231acba47e6addf1c Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Wed, 26 Nov 2003 19:43:26 +0000 Subject: lprintf cleanup, pass I. CVS patchset: 5796 CVS date: 2003/11/26 19:43:26 --- src/input/input_file.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/input/input_file.c') diff --git a/src/input/input_file.c b/src/input/input_file.c index c0e476413..d05a9ba83 100644 --- a/src/input/input_file.c +++ b/src/input/input_file.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: input_file.c,v 1.86 2003/11/11 18:44:54 f1rmb Exp $ + * $Id: input_file.c,v 1.87 2003/11/26 19:43:31 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -34,6 +34,12 @@ #include #include +#define LOG_MODULE "input_file" +#define LOG_VERBOSE +/* +#define LOG +*/ + #include "xine_internal.h" #include "xineutils.h" #include "compat.h" @@ -236,9 +242,8 @@ static int file_plugin_open (input_plugin_t *this_gen ) { file_input_plugin_t *this = (file_input_plugin_t *) this_gen; char *filename; - #ifdef LOG - printf("file_plugin_open\n"); - #endif + lprintf("file_plugin_open\n"); + if (strncasecmp (this->mrl, "file:", 5) == 0) filename = decode_uri(&(this->mrl[5])); else @@ -270,9 +275,7 @@ static input_plugin_t *file_class_get_instance (input_class_t *cls_gen, xine_str file_input_plugin_t *this; char *mrl = strdup(data); - #ifdef LOG - printf("file_class_get_instance\n"); - #endif + lprintf("file_class_get_instance\n"); if ((strncasecmp (mrl, "file:", 5)) && strstr (mrl, ":/") && (strstr (mrl, ":/") < strchr(mrl, '/'))) { free (mrl); @@ -426,9 +429,7 @@ static uint32_t get_file_type(char *filepathname, char *origin, xine_t *xine) { if((lstat(filepathname, &pstat)) < 0) { sprintf(buf, "%s/%s", origin, filepathname); if((lstat(buf, &pstat)) < 0) { -#ifdef LOG - printf ("lstat failed for %s{%s}\n", filepathname, origin); -#endif + lprintf ("lstat failed for %s{%s}\n", filepathname, origin); file_type |= mrl_unknown; return file_type; } -- cgit v1.2.3