rtsp-stream: Don't set the state of the appsrc from PLAYING to PAUSED again during setup

This would get us NO_PREROLL in the bin again and break seeking.
Thanks to Carlos Rafael Giani for helping to debug this!

https://bugzilla.gnome.org/show_bug.cgi?id=740509
This commit is contained in:
Sebastian Dröge 2016-03-16 23:35:09 +02:00
parent ad7fcf7a2f
commit 8e72e69eec

View file

@ -2533,8 +2533,6 @@ create_receiver_part (GstRTSPStream * stream, GstBin * bin, GstState state)
if (state != GST_STATE_NULL) {
if (priv->funnel[i] && (priv->sinkpad || i == 1))
gst_element_set_state (priv->funnel[i], state);
if (priv->appsrc[i] && (priv->sinkpad || i == 1))
gst_element_set_state (priv->appsrc[i], state);
}
}
}