summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-10-19 14:57:43 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-10-19 14:59:04 +0200
commit6994b19186bf9dc927ff7afc3465c329e39bb948 (patch)
tree3197f97fcb9d715cbecd80617b42cca40d179663
parenta847592640eafe8200bdb839ad41a9d1b4fd64d0 (diff)
downloadgstreamer-plugins-bad-6994b19186bf9dc927ff7afc3465c329e39bb948.tar.gz
vtenc: Use kVTProfileLevel_H264_Baseline_AutoLevel only on iOS
It is not required on OSX apparently and was only added in 10.9.6 there. Calculating the correct level from the configuration is not trivial, so let's just not set a level at all here.
-rw-r--r--sys/applemedia/vtenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c
index 13c9412b8..fee3273b2 100644
--- a/sys/applemedia/vtenc.c
+++ b/sys/applemedia/vtenc.c
@@ -475,11 +475,14 @@ gst_vtenc_create_session (GstVTEnc * self)
gst_vtenc_session_configure_expected_framerate (self, session,
(gdouble) self->negotiated_fps_n / (gdouble) self->negotiated_fps_d);
+ /* FIXME: This is only available since OS X 10.9.6 */
+#if HAVE_IOS
status = VTSessionSetProperty (session,
kVTCompressionPropertyKey_ProfileLevel,
kVTProfileLevel_H264_Baseline_AutoLevel);
GST_DEBUG_OBJECT (self, "kVTCompressionPropertyKey_ProfileLevel => %d",
(int) status);
+#endif
status = VTSessionSetProperty (session,
kVTCompressionPropertyKey_AllowTemporalCompression, kCFBooleanTrue);