mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
vtenc: fix build on iOS
This commit is contained in:
parent
ad00f4a0e2
commit
5977ef5552
1 changed files with 5 additions and 2 deletions
|
@ -527,14 +527,16 @@ static VTCompressionSessionRef
|
||||||
gst_vtenc_create_session (GstVTEnc * self)
|
gst_vtenc_create_session (GstVTEnc * self)
|
||||||
{
|
{
|
||||||
VTCompressionSessionRef session = NULL;
|
VTCompressionSessionRef session = NULL;
|
||||||
CFMutableDictionaryRef encoder_spec, pb_attrs;
|
CFMutableDictionaryRef encoder_spec = NULL, pb_attrs;
|
||||||
OSStatus status;
|
OSStatus status;
|
||||||
|
|
||||||
|
#if !HAVE_IOS
|
||||||
encoder_spec =
|
encoder_spec =
|
||||||
CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
||||||
&kCFTypeDictionaryValueCallBacks);
|
&kCFTypeDictionaryValueCallBacks);
|
||||||
gst_vtutil_dict_set_boolean (encoder_spec,
|
gst_vtutil_dict_set_boolean (encoder_spec,
|
||||||
kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder, true);
|
kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
pb_attrs = CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
pb_attrs = CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
||||||
&kCFTypeDictionaryValueCallBacks);
|
&kCFTypeDictionaryValueCallBacks);
|
||||||
|
@ -600,6 +602,7 @@ gst_vtenc_create_session (GstVTEnc * self)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
beach:
|
beach:
|
||||||
|
if (encoder_spec)
|
||||||
CFRelease (encoder_spec);
|
CFRelease (encoder_spec);
|
||||||
CFRelease (pb_attrs);
|
CFRelease (pb_attrs);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue