From e71c5eb03808258434f5dea38f5ad23b580989bd Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 10 Jan 2005 16:42:26 +0000 Subject: Some work on tags - still doesn't work in playbin... Original commit message from CVS: * ext/musepack/gstmusepackreader.cpp: * gst/apetag/apedemux.c: (gst_ape_demux_stream_data): Some work on tags - still doesn't work in playbin... * gst/audioscale/gstaudioscale.c: (gst_audioscale_chain): Handle events... --- ChangeLog | 8 ++++++++ ext/musepack/gstmusepackreader.c | 6 ++++++ ext/musepack/gstmusepackreader.cpp | 6 ++++++ gst/apetag/apedemux.c | 1 + 4 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 78ccdcc4..f80853a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-01-10 Ronald S. Bultje + + * ext/musepack/gstmusepackreader.cpp: + * gst/apetag/apedemux.c: (gst_ape_demux_stream_data): + Some work on tags - still doesn't work in playbin... + * gst/audioscale/gstaudioscale.c: (gst_audioscale_chain): + Handle events... + 2005-01-10 Ronald S. Bultje * gst/qtdemux/qtdemux.c: (qtdemux_parse_tree): diff --git a/ext/musepack/gstmusepackreader.c b/ext/musepack/gstmusepackreader.c index 2bef1cf2..07fbcf3d 100644 --- a/ext/musepack/gstmusepackreader.c +++ b/ext/musepack/gstmusepackreader.c @@ -64,6 +64,9 @@ GstMusepackReader::read (void * ptr, mpc_int32_t size) this->eos = true; gst_event_unref (event); goto done; + case GST_EVENT_FLUSH: + gst_event_unref (event); + break; default: gst_pad_event_default (this->bs->pad, event); break; @@ -117,6 +120,9 @@ GstMusepackReader::seek (mpc_int32_t offset) case GST_EVENT_INTERRUPT: g_warning ("interrupt!"); return false; + case GST_EVENT_FLUSH: + gst_event_unref (event); + break; default: gst_pad_event_default (this->bs->pad, event); break; diff --git a/ext/musepack/gstmusepackreader.cpp b/ext/musepack/gstmusepackreader.cpp index 2bef1cf2..07fbcf3d 100644 --- a/ext/musepack/gstmusepackreader.cpp +++ b/ext/musepack/gstmusepackreader.cpp @@ -64,6 +64,9 @@ GstMusepackReader::read (void * ptr, mpc_int32_t size) this->eos = true; gst_event_unref (event); goto done; + case GST_EVENT_FLUSH: + gst_event_unref (event); + break; default: gst_pad_event_default (this->bs->pad, event); break; @@ -117,6 +120,9 @@ GstMusepackReader::seek (mpc_int32_t offset) case GST_EVENT_INTERRUPT: g_warning ("interrupt!"); return false; + case GST_EVENT_FLUSH: + gst_event_unref (event); + break; default: gst_pad_event_default (this->bs->pad, event); break; diff --git a/gst/apetag/apedemux.c b/gst/apetag/apedemux.c index 6736d086..f1d10a2b 100644 --- a/gst/apetag/apedemux.c +++ b/gst/apetag/apedemux.c @@ -710,6 +710,7 @@ gst_ape_demux_stream_data (GstApeDemux * ape) GstData *data; data = gst_pad_pull (ape->sinkpad); + if (GST_IS_EVENT (data)) { GstEvent *event = GST_EVENT (data); -- cgit v1.2.1