summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2015-07-13 23:22:00 +1000
committerMatthew Waters <matthew@centricular.com>2015-07-13 23:26:14 +1000
commitc1906f1cfe1567b75c9a4d6a83e518dd1754402b (patch)
tree2fe1186e2d54e384c90b9c0d6a37fca4634bf07e /sys
parent1a59af2e7ebcc6bd2aff28d2baea3fc83ec0fd0f (diff)
downloadgstreamer-plugins-bad-c1906f1cfe1567b75c9a4d6a83e518dd1754402b.tar.gz
applemedia/avsample: fix unconditional use of OSX 10.10 API
We can just not use the error/status properties https://bugzilla.gnome.org/show_bug.cgi?id=746631
Diffstat (limited to 'sys')
-rw-r--r--sys/applemedia/avsamplevideosink.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/applemedia/avsamplevideosink.m b/sys/applemedia/avsamplevideosink.m
index 199e65937..08f7e13f4 100644
--- a/sys/applemedia/avsamplevideosink.m
+++ b/sys/applemedia/avsamplevideosink.m
@@ -748,11 +748,13 @@ gst_av_sample_video_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
_request_data (av_sink);
g_mutex_unlock (&av_sink->render_lock);
+#if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1010
if ([av_sink->layer status] == AVQueuedSampleBufferRenderingStatusFailed) {
GST_ERROR_OBJECT (av_sink, "failed to enqueue buffer on layer, %s",
[[[av_sink->layer error] description] UTF8String]);
return GST_FLOW_ERROR;
}
+#endif
return ret;
}