mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
omxaudiosink: implement _delay only in the RaspberryPI
Make code implementation conditionally built for RaspberryPI because OMX_IndexConfigAudioRenderingLatency seems to be a Broadcom extension. On other targets the query position might not be accurate without implementing _delay appropriatelly.
This commit is contained in:
parent
527af797d2
commit
e08540d969
1 changed files with 4 additions and 0 deletions
|
@ -886,6 +886,7 @@ release_error:
|
||||||
static guint
|
static guint
|
||||||
gst_omx_audio_sink_delay (GstAudioSink * audiosink)
|
gst_omx_audio_sink_delay (GstAudioSink * audiosink)
|
||||||
{
|
{
|
||||||
|
#if defined (USE_OMX_TARGET_RPI)
|
||||||
GstOMXAudioSink *self = GST_OMX_AUDIO_SINK (audiosink);
|
GstOMXAudioSink *self = GST_OMX_AUDIO_SINK (audiosink);
|
||||||
OMX_PARAM_U32TYPE param;
|
OMX_PARAM_U32TYPE param;
|
||||||
OMX_ERRORTYPE err;
|
OMX_ERRORTYPE err;
|
||||||
|
@ -903,6 +904,9 @@ gst_omx_audio_sink_delay (GstAudioSink * audiosink)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (self, "reported delay %u samples", (guint) param.nU32);
|
GST_DEBUG_OBJECT (self, "reported delay %u samples", (guint) param.nU32);
|
||||||
return param.nU32;
|
return param.nU32;
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue