diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-05-19 10:23:46 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-05-19 10:23:46 +0000 |
commit | a40deba0ce350491e0bdf37d8190470f0906dec7 (patch) | |
tree | 224bc862003234769e6689dc8ee27aac3470ecc6 | |
parent | 3530e34731740ce0a995f207d2316db235aaaa78 (diff) | |
download | gstreamer-plugins-ugly-a40deba0ce350491e0bdf37d8190470f0906dec7.tar.gz |
gst/realmedia/rmdemux.c: Flush timestamp correction variables on a flush. Fixes #533832.
Original commit message from CVS:
* gst/realmedia/rmdemux.c: (gst_rmdemux_send_event):
Flush timestamp correction variables on a flush. Fixes #533832.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gst/realmedia/rmdemux.c | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2008-05-19 Wim Taymans <wim.taymans@collabora.co.uk> + + * gst/realmedia/rmdemux.c: (gst_rmdemux_send_event): + Flush timestamp correction variables on a flush. Fixes #533832. + 2008-05-14 Jan Schmidt <jan.schmidt@sun.com> * configure.ac: diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index 4135aae9..e1bb4f1b 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -1255,6 +1255,17 @@ gst_rmdemux_send_event (GstRMDemux * rmdemux, GstEvent * event) GST_DEBUG_OBJECT (rmdemux, "Pushing %s event on pad %s", GST_EVENT_TYPE_NAME (event), GST_PAD_NAME (stream->pad)); + switch (GST_EVENT_TYPE (event)) { + case GST_EVENT_FLUSH_STOP: + stream->last_ts = -1; + stream->next_ts = -1; + stream->last_seq = -1; + stream->next_seq = -1; + stream->last_flow = GST_FLOW_OK; + break; + default: + break; + } gst_event_ref (event); gst_pad_push_event (stream->pad, event); } |