summaryrefslogtreecommitdiffstats
path: root/gst-libs
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-05-16 20:06:35 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-05-16 20:06:35 +0000
commit441b58ad507c87d487b51c8a6638dd4f7307373e (patch)
treeb29290c157856bfe2c52f78b9c7a18839f3e95af /gst-libs
parent83195f974d6d1224bb089a45b23bfe0bfb92e7a9 (diff)
downloadgst-plugins-bad-441b58ad507c87d487b51c8a6638dd4f7307373e.tar.gz
gst-plugins-bad-441b58ad507c87d487b51c8a6638dd4f7307373e.tar.bz2
gst-plugins-bad-441b58ad507c87d487b51c8a6638dd4f7307373e.zip
gst-libs/gst/riff/riff-read.c: Don't touch events after not owning them anymore.
Original commit message from CVS: * gst-libs/gst/riff/riff-read.c: (gst_riff_read_seek): Don't touch events after not owning them anymore. * gst/wavparse/gstwavparse.c: (gst_wavparse_base_init), (gst_wavparse_fmt), (gst_wavparse_other), (gst_wavparse_handle_seek), (gst_wavparse_loop), (gst_wavparse_pad_convert), (gst_wavparse_pad_query), (gst_wavparse_srcpad_event): * gst/wavparse/gstwavparse.h: Add seeking, fix querying.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/riff/riff-read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/riff/riff-read.c b/gst-libs/gst/riff/riff-read.c
index 0e441ba8..abae8038 100644
--- a/gst-libs/gst/riff/riff-read.c
+++ b/gst-libs/gst/riff/riff-read.c
@@ -299,8 +299,10 @@ gst_riff_read_seek (GstRiffRead * riff, guint64 offset)
GST_WARNING ("No discontinuity event after seek - seek failed");
break;
} else if (GST_EVENT_TYPE (event) != GST_EVENT_DISCONTINUOUS) {
+ GstEventType type = GST_EVENT_TYPE (event);
+
gst_pad_event_default (riff->sinkpad, event);
- if (GST_EVENT_TYPE (event) == GST_EVENT_EOS)
+ if (type == GST_EVENT_EOS)
return NULL;
event = NULL;
}