[MPlayer-cvslog] r31607 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Thu Jul 1 22:43:20 CEST 2010


Author: reimar
Date: Thu Jul  1 22:43:20 2010
New Revision: 31607

Log:
Fix ffmpeg logging: mp_msg_test must be called after the proper target
was detemined.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Thu Jul  1 22:41:42 2010	(r31606)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Thu Jul  1 22:43:20 2010	(r31607)
@@ -189,8 +189,6 @@ static void mp_msp_av_log_callback(void 
     default          :  mp_level= MSGL_ERR ; break;
     }
 
-    if (!mp_msg_test(type, mp_level)) return;
-
     if(ptr){
         if(!strcmp(avc->class_name, "AVCodecContext")){
             AVCodecContext *s= ptr;
@@ -215,6 +213,8 @@ static void mp_msp_av_log_callback(void 
         }
     }
 
+    if (!mp_msg_test(type, mp_level)) return;
+
     if(print_prefix && avc) {
         mp_msg(type, mp_level, "[%s @ %p]", avc->item_name(ptr), avc);
     }


More information about the MPlayer-cvslog mailing list