[FFmpeg-devel] [PATCH] Fix darwin compilation and silence compiler warning.

Thilo Borgmann thilo.borgmann at mail.de
Mon Mar 31 14:27:38 CEST 2014


$Subject.

-Thilo
-------------- next part --------------
>From 086d5076c0cbfe89819f4ad523f87d3c2093527a Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann at mail.de>
Date: Mon, 31 Mar 2014 14:17:28 +0200
Subject: [PATCH 2/2] lavd/qtkit: Use a const char* while enumerating devices.

---
 libavdevice/qtkit.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/qtkit.m b/libavdevice/qtkit.m
index 593d2c0..3c21f57 100644
--- a/libavdevice/qtkit.m
+++ b/libavdevice/qtkit.m
@@ -153,7 +153,7 @@ static int qtkit_read_header(AVFormatContext *s)
         av_log(ctx, AV_LOG_INFO, "QTKit video devices:\n");
         NSArray *devices = [QTCaptureDevice inputDevicesWithMediaType:QTMediaTypeVideo];
         for (QTCaptureDevice *device in devices) {
-            char *name = [[device localizedDisplayName] UTF8String];
+            const char *name = [[device localizedDisplayName] UTF8String];
             int index  = [devices indexOfObject:device];
             av_log(ctx, AV_LOG_INFO, "[%d] %s\n", index, name);
         }
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list