changeset 31541:0ccd18ec15c3

Fix ffmpeg logging: mp_msg_test must be called after the proper target was detemined.
author reimar
date Thu, 01 Jul 2010 20:43:20 +0000
parents 7f1c8212e3cf
children 683818e5430d
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Thu Jul 01 20:41:42 2010 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Thu Jul 01 20:43:20 2010 +0000
@@ -189,8 +189,6 @@
     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 @@
         }
     }
 
+    if (!mp_msg_test(type, mp_level)) return;
+
     if(print_prefix && avc) {
         mp_msg(type, mp_level, "[%s @ %p]", avc->item_name(ptr), avc);
     }