diff options
author | Edward Hervey <edward@collabora.com> | 2013-09-19 12:58:53 +0200 |
---|---|---|
committer | Edward Hervey <edward@collabora.com> | 2013-09-19 12:58:53 +0200 |
commit | 556687b94be9b4db2d0ef27870a202521df3f085 (patch) | |
tree | 4a7a585153952ffc8046968f69c0de25cdc160c2 | |
parent | 71930443cc114bd83fb765174df5007059a12e52 (diff) |
discoverer: Switch to playing to handle live URI
Fixes discovery on dvb://
-rw-r--r-- | gst-libs/gst/pbutils/gstdiscoverer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index 419ea12f2..5229b041f 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -1510,6 +1510,12 @@ _setup_locked (GstDiscoverer * dc) ret = gst_element_set_state ((GstElement *) dc->priv->pipeline, 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); GST_DEBUG_OBJECT (dc, "Pipeline going to PAUSED : %s", |