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.
This commit is contained in:
parent
ea978cec4d
commit
0bad4023f0
@ -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>
|
2004-02-26 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst-libs/gst/colorbalance/Makefile.am:
|
* gst-libs/gst/colorbalance/Makefile.am:
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
|
|
||||||
#include <gst/audio/audioclock.h>
|
#include <gst/audio/audioclock.h>
|
||||||
|
|
||||||
|
#ifndef __GST_AUDIO_AUDIO_H__
|
||||||
|
#define __GST_AUDIO_AUDIO_H__
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* For people that are looking at this source: the purpose of these defines is
|
/* 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
|
G_END_DECLS
|
||||||
|
|
||||||
|
#endif /* __GST_AUDIO_AUDIO_H__ */
|
||||||
|
@ -11,14 +11,12 @@ do {
|
|||||||
while (! filter->eos && in != NULL && GST_IS_EVENT (in)) {
|
while (! filter->eos && in != NULL && GST_IS_EVENT (in)) {
|
||||||
GstEvent *event = GST_EVENT (in);
|
GstEvent *event = GST_EVENT (in);
|
||||||
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
|
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
|
||||||
gst_event_unref (event);
|
gst_data_unref (in);
|
||||||
gst_data_free (in);
|
|
||||||
in = NULL;
|
in = NULL;
|
||||||
filter->eos = TRUE;
|
filter->eos = TRUE;
|
||||||
} else if ((GST_EVENT_TYPE (event) == GST_EVENT_DISCONTINUOUS) ||
|
} else if ((GST_EVENT_TYPE (event) == GST_EVENT_DISCONTINUOUS) ||
|
||||||
(GST_EVENT_TYPE (event) == GST_EVENT_FLUSH)) {
|
(GST_EVENT_TYPE (event) == GST_EVENT_FLUSH)) {
|
||||||
gst_event_unref (event);
|
gst_data_unref (in);
|
||||||
gst_data_free (in);
|
|
||||||
in = NULL;
|
in = NULL;
|
||||||
filter->eos = FALSE;
|
filter->eos = FALSE;
|
||||||
filter->write = 0;
|
filter->write = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user