This API was deprecated in 10.4, so don't use it for 10.5 and onwards.
https://bugzilla.gnome.org/show_bug.cgi?id=766973
_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 defined(MAC_OS_X_VERSION_MAX_ALLOWED) && \
+ MAC_OS_X_VERSION_MAX_ALLOWED >= 1010 && \
+ defined(MAC_OS_X_VERSION_MIN_REQUIRED) && \
+ MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
if ([av_sink->layer status] == AVQueuedSampleBufferRenderingStatusFailed) {
GST_ERROR_OBJECT (av_sink, "failed to enqueue buffer on layer, %s",
[[[av_sink->layer error] description] UTF8String]);