adder: keep sending newsegments after seeking
Adder sends with timestamps from 0 upwards. After seeking we need to send new-segments to get correct positions-queries.
This commit is contained in:
parent
92ecca7f24
commit
da27fd57e8
@ -692,9 +692,10 @@ gst_adder_src_event (GstPad * pad, GstEvent * event)
|
|||||||
adder->segment_position = cur;
|
adder->segment_position = cur;
|
||||||
else
|
else
|
||||||
adder->segment_position = 0;
|
adder->segment_position = 0;
|
||||||
/* we flushed out the downstream segment, make sure we push a new one */
|
/* make sure we push a new segment, to inform about new basetime
|
||||||
if (flush) {
|
* see FIXME in gst_adder_collected() */
|
||||||
adder->segment_pending = TRUE;
|
adder->segment_pending = TRUE;
|
||||||
|
if (flush) {
|
||||||
/* Yes, we need to call _set_flushing again *WHEN* the streaming threads
|
/* Yes, we need to call _set_flushing again *WHEN* the streaming threads
|
||||||
* have stopped so that the cookie gets properly updated. */
|
* have stopped so that the cookie gets properly updated. */
|
||||||
gst_collect_pads_set_flushing (adder->collect, TRUE);
|
gst_collect_pads_set_flushing (adder->collect, TRUE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user