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
This commit is contained in:
Matthew Waters 2015-07-13 23:22:00 +10:00
parent 1a59af2e7e
commit c1906f1cfe

View file

@ -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;
}