From dfa6de2b4a24755090b5c5b8abdb8b8610efdc5c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 13 Mar 2006 18:28:18 +0000 Subject: [PATCH] gst/wavparse/gstwavparse.c: Implement seek in READY (re-fixes #327658) Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_reset), (gst_wavparse_change_state): Implement seek in READY (re-fixes #327658) --- ChangeLog | 6 ++++++ gst/wavparse/gstwavparse.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e5f4b10026..a538152a35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-13 Wim Taymans + + * gst/wavparse/gstwavparse.c: (gst_wavparse_reset), + (gst_wavparse_change_state): + Implement seek in READY (re-fixes #327658) + 2006-03-13 Wim Taymans * ext/cairo/gsttextoverlay.c: (gst_text_overlay_setcaps): diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 081a22d678..98256ed974 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -210,8 +210,6 @@ gst_wavparse_reset (GstWavParse * wavparse) wavparse->datasize = 0; wavparse->datastart = 0; - gst_event_replace (&wavparse->seek_event, NULL); - /* we keep the segment info in time */ gst_segment_init (&wavparse->segment, GST_FORMAT_TIME); } @@ -1525,6 +1523,8 @@ gst_wavparse_change_state (GstElement * element, GstStateChange transition) break; case GST_STATE_CHANGE_PAUSED_TO_READY: gst_wavparse_destroy_sourcepad (wav); + gst_event_replace (&wav->seek_event, NULL); + gst_wavparse_reset (wav); break; case GST_STATE_CHANGE_READY_TO_NULL: break;