mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
1a59af2e7e
commit
c1906f1cfe
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue