Quieten the mpeg2new plugin. diff --git a/src/libmpeg2new/xine_mpeg2new_decoder.c b/src/libmpeg2new/xine_mpeg2new_decoder.c --- a/src/libmpeg2new/xine_mpeg2new_decoder.c +++ b/src/libmpeg2new/xine_mpeg2new_decoder.c @@ -36,12 +36,12 @@ #include - +/* #define LOG #define LOG_FRAME_ALLOC_FREE #define LOG_ENTRY #define LOG_FRAME_COUNTER - +*/ typedef struct { video_decoder_class_t decoder_class; @@ -72,18 +72,18 @@ static void mpeg2_video_print_bad_state( m=0; for(n=0;n<30;n++) { if (img_state[n].id>0) { - printf("%d = %u\n",n, img_state[n].id); + lprintf("%d = %u\n",n, img_state[n].id); m++; } } if (m > 3) _x_abort(); - if (m == 0) printf("NO FRAMES\n"); + if (m == 0) lprintf("NO FRAMES\n"); } static void mpeg2_video_free_all(img_state_t * img_state) { int32_t n,m; vo_frame_t * img; - printf("libmpeg2new:free_all\n"); + lprintf("libmpeg2new:free_all\n"); for(n=0;n<30;n++) { if (img_state[n].id>0) { img = img_state[n].img; @@ -92,7 +92,6 @@ static void mpeg2_video_free_all(img_sta } } } - static void mpeg2_video_print_fbuf(const mpeg2_fbuf_t * fbuf) { printf("%p",fbuf); @@ -262,7 +261,7 @@ static void mpeg2_video_decode_data (vid } if (info->discard_fbuf && !info->discard_fbuf->id) { - printf ("libmpeg2:decode_data:BAD free_frame discard: xine=%p, fbuf=%p\n", info->discard_fbuf->id, info->discard_fbuf); + lprintf ("libmpeg2:decode_data:BAD free_frame discard: xine=%p, fbuf=%p\n", info->discard_fbuf->id, info->discard_fbuf); //_x_abort(); } if (info->discard_fbuf && info->discard_fbuf->id) { @@ -286,7 +285,7 @@ static void mpeg2_video_decode_data (vid case STATE_GOP: break; default: - printf("libmpeg2new: STATE unknown %d\n",state); + lprintf("libmpeg2new: STATE unknown %d\n",state); break; } @@ -496,7 +495,7 @@ static decoder_info_t dec_info_mpeg2 = { 6 /* priority */ }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] EXPORTED = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_VIDEO_DECODER, 19, "mpeg2new", XINE_VERSION_CODE, &dec_info_mpeg2, init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL }