diff options
author | Benjamin Otte <otte@gnome.org> | 2004-02-27 21:47:49 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2004-02-27 21:47:49 +0000 |
commit | 0bad4023f0be4da5fac060160f2c207f3e8427f5 (patch) | |
tree | 21bd23ab6d8be0a5592eab7faf06032b1960ac3b /gst/playondemand/filter.func | |
parent | ea978cec4d80fe4a0b1dadf1ca5beea761d6b09a (diff) | |
download | gst-plugins-bad-0bad4023f0be4da5fac060160f2c207f3e8427f5.tar.gz gst-plugins-bad-0bad4023f0be4da5fac060160f2c207f3e8427f5.tar.bz2 gst-plugins-bad-0bad4023f0be4da5fac060160f2c207f3e8427f5.zip |
gst-libs/gst/audio/audio.h: add macro to make sure header isn't included twice
Original commit message from CVS:
2004-02-27 Benjamin Otte <otte@gnome.org>
* gst-libs/gst/audio/audio.h:
add macro to make sure header isn't included twice
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_chunk):
don't use gst_buffer_free
* gst/playondemand/filter.func:
don't usae gst_data_free. Free data only once.
Diffstat (limited to 'gst/playondemand/filter.func')
-rw-r--r-- | gst/playondemand/filter.func | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/playondemand/filter.func b/gst/playondemand/filter.func index cded073e..092bbe56 100644 --- a/gst/playondemand/filter.func +++ b/gst/playondemand/filter.func @@ -11,14 +11,12 @@ do { while (! filter->eos && in != NULL && GST_IS_EVENT (in)) { GstEvent *event = GST_EVENT (in); if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { - gst_event_unref (event); - gst_data_free (in); + gst_data_unref (in); in = NULL; filter->eos = TRUE; } else if ((GST_EVENT_TYPE (event) == GST_EVENT_DISCONTINUOUS) || (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH)) { - gst_event_unref (event); - gst_data_free (in); + gst_data_unref (in); in = NULL; filter->eos = FALSE; filter->write = 0; |