mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
discoverer: Switch to playing to handle live URI
Fixes discovery on dvb://
This commit is contained in:
parent
71930443cc
commit
556687b94b
1 changed files with 6 additions and 0 deletions
|
@ -1510,6 +1510,12 @@ _setup_locked (GstDiscoverer * dc)
|
||||||
ret =
|
ret =
|
||||||
gst_element_set_state ((GstElement *) dc->priv->pipeline,
|
gst_element_set_state ((GstElement *) dc->priv->pipeline,
|
||||||
GST_STATE_PAUSED);
|
GST_STATE_PAUSED);
|
||||||
|
if (ret == GST_STATE_CHANGE_NO_PREROLL) {
|
||||||
|
GST_DEBUG ("Source is live, switching to PLAYING");
|
||||||
|
ret =
|
||||||
|
gst_element_set_state ((GstElement *) dc->priv->pipeline,
|
||||||
|
GST_STATE_PLAYING);
|
||||||
|
}
|
||||||
DISCO_LOCK (dc);
|
DISCO_LOCK (dc);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (dc, "Pipeline going to PAUSED : %s",
|
GST_DEBUG_OBJECT (dc, "Pipeline going to PAUSED : %s",
|
||||||
|
|
Loading…
Reference in a new issue