mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
playsink: send flush start/stop event when we switch elements
https://bugzilla.gnome.org/show_bug.cgi?id=661262
This commit is contained in:
parent
0cac680fac
commit
7eb8a9aaf6
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ distribute_running_time (GstElement * element, const GstSegment * segment)
|
||||||
|
|
||||||
pad = gst_element_get_static_pad (element, "sink");
|
pad = gst_element_get_static_pad (element, "sink");
|
||||||
|
|
||||||
|
gst_pad_send_event (pad, gst_event_new_flush_start ());
|
||||||
|
gst_pad_send_event (pad, gst_event_new_flush_stop ());
|
||||||
|
|
||||||
if (segment->accum) {
|
if (segment->accum) {
|
||||||
event = gst_event_new_new_segment_full (FALSE, segment->rate,
|
event = gst_event_new_new_segment_full (FALSE, segment->rate,
|
||||||
segment->applied_rate, segment->format, 0, segment->accum, 0);
|
segment->applied_rate, segment->format, 0, segment->accum, 0);
|
||||||
|
|
Loading…
Reference in a new issue