gst/gstelementfactory.c: Add "g_free (dp->license)" in gst_element_details_free().

Original commit message from CVS:
2003-03-29  Martin Schulze  <MHL.Schulze@t-online.de>

* gst/gstelementfactory.c: Add "g_free (dp->license)" in
gst_element_details_free().
* gst/gstevent.[ch]: Add function gst_event_get_type() to
support c++ language binding. Make macros gst_event_ref[_by_count]
return a GstEvent* instead of a GstData*.
* gst/gstbuffer.[ch]: Add functions gst_buffer[_pool]_get_type()
to support c++ language binding.
This commit is contained in:
Martin Schulze 2003-03-29 11:58:15 +00:00
parent f6d654aad5
commit df2f947370
6 changed files with 38 additions and 6 deletions

View file

@ -1,3 +1,13 @@
2003-03-29 Martin Schulze <MHL.Schulze@t-online.de>
* gst/gstelementfactory.c: Add "g_free (dp->license)" in
gst_element_details_free().
* gst/gstevent.[ch]: Add function gst_event_get_type() to
support c++ language binding. Make macros gst_event_ref[_by_count]
return a GstEvent* instead of a GstData*.
* gst/gstbuffer.[ch]: Add functions gst_buffer[_pool]_get_type()
to support c++ language binding.
2003-03-16 Christian Meyer <chrisime@gnome.org>
* tools/gst-inspect.c
@ -3102,10 +3112,10 @@
2001-06-02 22:57 wtay
* plugins/cdparanoia/: cdparanoia.c, cdparanoia.h: Applied the
patch from Apoc: š _ Add properties cur_sector read only ( get
current sector ) š _ Add properties last_track read only ( last
track of the cd ) š _ Add properties cur_track read only ( get the
current track ) š _ Properties end_track writeable ( last track to
patch from Apoc: š _ Add properties cur_sector read only ( get
current sector ) š _ Add properties last_track read only ( last
track of the cd ) š _ Add properties cur_track read only ( get the
current track ) š _ Properties end_track writeable ( last track to
rip/play )
2001-06-02 22:52 wtay

View file

@ -66,6 +66,12 @@ _gst_buffer_initialize (void)
GST_INFO (GST_CAT_BUFFER, "Buffers are initialized now");
}
GType
gst_buffer_get_type (void)
{
return _gst_buffer_type;
}
static void
_gst_buffer_free_to_pool (GstBuffer *buffer)
{
@ -419,6 +425,12 @@ gst_buffer_span (GstBuffer *buf1, guint32 offset, GstBuffer *buf2, guint32 len)
return newbuf;
}
GType
gst_buffer_pool_get_type (void)
{
return _gst_buffer_pool_type;
}
/**
* gst_buffer_pool_default_free:
* @pool: a #GstBufferPool to free.

View file

@ -118,6 +118,7 @@ struct _GstBufferPool {
};
/* allocation */
GType gst_buffer_get_type (void);
GstBuffer* gst_buffer_new (void);
GstBuffer* gst_buffer_new_and_alloc (guint size);
@ -157,6 +158,7 @@ void gst_buffer_default_free (GstBuffer *buffer);
GstBuffer* gst_buffer_default_copy (GstBuffer *buffer);
/* creating a new buffer pools */
GType gst_buffer_pool_get_type (void);
GstBufferPool* gst_buffer_pool_new (GstDataFreeFunction free,
GstDataCopyFunction copy,
GstBufferPoolBufferNewFunction buffer_new,

View file

@ -112,6 +112,7 @@ gst_element_details_free (GstElementDetails *dp)
{
g_free (dp->longname);
g_free (dp->klass);
g_free (dp->license);
g_free (dp->description);
g_free (dp->version);
g_free (dp->author);

View file

@ -115,6 +115,12 @@ gst_event_masks_contains (const GstEventMask *masks, GstEventMask *mask)
return FALSE;
}
GType
gst_event_get_type (void)
{
return _gst_event_type;
}
/**
* gst_event_new:
* @type: The type of the new event

View file

@ -183,11 +183,12 @@ struct _GstEvent {
void _gst_event_initialize (void);
GType gst_event_get_type (void);
GstEvent* gst_event_new (GstEventType type);
/* refcounting */
#define gst_event_ref(ev) gst_data_ref (GST_DATA (ev))
#define gst_event_ref_by_count(ev,c) gst_data_ref_by_count (GST_DATA (ev), c)
#define gst_event_ref(ev) GST_EVENT (gst_data_ref (GST_DATA (ev)))
#define gst_event_ref_by_count(ev,c) GST_EVENT (gst_data_ref_by_count (GST_DATA (ev), c))
#define gst_event_unref(ev) gst_data_unref (GST_DATA (ev))
/* copy buffer */
#define gst_event_copy(ev) GST_EVENT (gst_data_copy (GST_DATA (ev)))