summaryrefslogtreecommitdiffstats
path: root/gst/mpegvideoparse
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2009-02-02 23:29:24 +0100
committerJosep Torra <n770galaxy@gmail.com>2009-02-02 23:29:24 +0100
commit9e2dc060a44971af862ce9a8cc13f4e3f8ece743 (patch)
tree600c5b7dae059f26f718b6995f1f2e109489b841 /gst/mpegvideoparse
parentc8eb591688cc64c3da68ef34729b2720fd94a99b (diff)
downloadgst-plugins-bad-9e2dc060a44971af862ce9a8cc13f4e3f8ece743.tar.gz
gst-plugins-bad-9e2dc060a44971af862ce9a8cc13f4e3f8ece743.tar.bz2
gst-plugins-bad-9e2dc060a44971af862ce9a8cc13f4e3f8ece743.zip
Also flush parser when a newsegment is received. Fixes loop in reverse mode.
Diffstat (limited to 'gst/mpegvideoparse')
-rw-r--r--gst/mpegvideoparse/mpegvideoparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegvideoparse/mpegvideoparse.c b/gst/mpegvideoparse/mpegvideoparse.c
index 5d70762d..3c930179 100644
--- a/gst/mpegvideoparse/mpegvideoparse.c
+++ b/gst/mpegvideoparse/mpegvideoparse.c
@@ -807,6 +807,8 @@ mpv_parse_sink_event (GstPad * pad, GstEvent * event)
format, start, stop, pos);
}
+ gst_mpegvideoparse_flush (mpegvideoparse);
+
/* now configure the values */
gst_segment_set_newsegment_full (&mpegvideoparse->segment, update,
rate, applied_rate, format, start, stop, pos);