mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
audiovisualizer: Negotiate as soon as possible when getting the sinkpad caps
This commit is contained in:
parent
71c131b63c
commit
3d09d0068d
1 changed files with 8 additions and 1 deletions
|
@ -709,7 +709,9 @@ gst_audio_visualizer_sink_setcaps (GstAudioVisualizer * scope, GstCaps * caps)
|
|||
GST_DEBUG_OBJECT (scope, "audio: channels %d, rate %d",
|
||||
GST_AUDIO_INFO_CHANNELS (&info), GST_AUDIO_INFO_RATE (&info));
|
||||
|
||||
gst_pad_mark_reconfigure (scope->srcpad);
|
||||
if (!gst_audio_visualizer_src_negotiate (scope)) {
|
||||
goto not_negotiated;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
|
@ -719,6 +721,11 @@ wrong_caps:
|
|||
GST_WARNING_OBJECT (scope, "could not parse caps");
|
||||
return FALSE;
|
||||
}
|
||||
not_negotiated:
|
||||
{
|
||||
GST_WARNING_OBJECT (scope, "failed to negotiate");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue