From 1ea7a3e04e42f686b53704193e60d0745681a959 Mon Sep 17 00:00:00 2001 From: Thilo Borgmann Date: Tue, 23 Sep 2014 16:49:16 +0200 Subject: [PATCH] lavd/avfoundation: Simplify debug message generation. Signed-off-by: Michael Niedermayer --- libavdevice/avfoundation.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index 207d5c9531..5b1e694947 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];