gst-libs/gst/audio/audio.h: add macro to make sure header isn't included twice
authorBenjamin Otte <otte@gnome.org>
Fri, 27 Feb 2004 21:47:49 +0000 (21:47 +0000)
committerBenjamin Otte <otte@gnome.org>
Fri, 27 Feb 2004 21:47:49 +0000 (21:47 +0000)
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.

ChangeLog
gst-libs/gst/audio/audio.h
gst/playondemand/filter.func

index 5778d75e3101ce015707e7b8883b3d96be4fb068..0b36fb898c47fb03331705fb9d6b5eac1271b3f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
 2004-02-26  David Schleef  <ds@schleef.org>
 
        * gst-libs/gst/colorbalance/Makefile.am:
index 0b67ebc102ec3ac93e1332d213214792534c77de..4a3428ddb33e63faa55db89d5d4f86624e4ee15a 100644 (file)
@@ -22,6 +22,9 @@
 
 #include <gst/audio/audioclock.h>
 
+#ifndef __GST_AUDIO_AUDIO_H__
+#define __GST_AUDIO_AUDIO_H__
+
 G_BEGIN_DECLS
 
 /* For people that are looking at this source: the purpose of these defines is
@@ -124,3 +127,4 @@ void gst_audio_structure_set_int (GstStructure *structure, GstAudioFieldFlag fla
 
 G_END_DECLS
 
+#endif /* __GST_AUDIO_AUDIO_H__ */
index cded073e0ba3fc9212537f1f4dedd6dcfc4bbd9b..092bbe5624f5617f632736e1be90898c39ad284c 100644 (file)
@@ -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;