[FFmpeg-cvslog] lavd/avfoundation: Simplify debug message generation.

Thilo Borgmann git at videolan.org
Fri Sep 26 05:13:40 CEST 2014


ffmpeg | branch: master | Thilo Borgmann <thilo.borgmann at mail.de> | Tue Sep 23 16:49:16 2014 +0200| [1ea7a3e04e42f686b53704193e60d0745681a959] | committer: Michael Niedermayer

lavd/avfoundation: Simplify debug message generation.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ea7a3e04e42f686b53704193e60d0745681a959
---

 libavdevice/avfoundation.m |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 207d5c9..5b1e694 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -384,8 +384,7 @@ static int avf_read_header(AVFormatContext *s)
         }
     }
 
-    NSString* dev_display_name = [video_device localizedName];
-    av_log(s, AV_LOG_DEBUG, "'%s' opened\n", [dev_display_name UTF8String]);
+    av_log(s, AV_LOG_DEBUG, "'%s' opened\n", [[video_device localizedName] UTF8String]);
 
     // Initialize capture session
     ctx->capture_session = [[AVCaptureSession alloc] init];



More information about the ffmpeg-cvslog mailing list