vlc | branch: master | Marvin Scholz <epira...@gmail.com> | Thu Feb 15 00:34:29 2018 +0100| [10ee2376b55c5b8401809638c5e4010bc98a59be] | committer: Marvin Scholz
codec/videotoolbox: Bridge to NSDictionary > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10ee2376b55c5b8401809638c5e4010bc98a59be --- modules/codec/videotoolbox.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m index e1f843ffeb..e0fb9d0429 100644 --- a/modules/codec/videotoolbox.m +++ b/modules/codec/videotoolbox.m @@ -1941,9 +1941,8 @@ skip: static int UpdateVideoFormat(decoder_t *p_dec, CVPixelBufferRef imageBuffer) { - CFDictionaryRef attachments = CVBufferGetAttachments(imageBuffer, kCVAttachmentMode_ShouldPropagate); - NSDictionary *attachmentDict = (NSDictionary *)attachments; - + NSDictionary *attachmentDict = + (__bridge NSDictionary *)CVBufferGetAttachments(imageBuffer, kCVAttachmentMode_ShouldPropagate); if (attachmentDict != nil && attachmentDict.count > 0 && p_dec->fmt_out.video.chroma_location == CHROMA_LOCATION_UNDEF) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits