mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
rtspsrc: fix seeking regression
... introduced when shuffling around code for the async implementation by setting state of source (and udp sources) in _play before downstream flushing is undone.
This commit is contained in:
parent
fd38772d3e
commit
b98585df82
1 changed files with 6 additions and 2 deletions
|
@ -6018,7 +6018,11 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async)
|
|||
* udp sources */
|
||||
gst_rtspsrc_send_dummy_packets (src);
|
||||
|
||||
/* activate receive elements */
|
||||
/* activate receive elements;
|
||||
* only in async case, since receive elements may not have been affected
|
||||
* by overall state change (e.g. not around yet),
|
||||
* do not mess with state in sync case (e.g. seeking) */
|
||||
if (async)
|
||||
gst_element_set_state (GST_ELEMENT_CAST (src), GST_STATE_PLAYING);
|
||||
|
||||
/* construct a control url */
|
||||
|
|
Loading…
Reference in a new issue