mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 12:15:19 +00:00
gst/gstcaps.c: Move the poisoning to allow a NULL structure
Original commit message from CVS: * gst/gstcaps.c: (gst_caps_append_structure): Move the poisoning to allow a NULL structure * gst/gstevent.c: (_gst_event_free): When freeing a navigation event, free the structure also
This commit is contained in:
parent
2f85a255ba
commit
c1d837b9d5
3 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-01-06 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* gst/gstcaps.c: (gst_caps_append_structure):
|
||||||
|
Move the poisoning to allow a NULL structure
|
||||||
|
* gst/gstevent.c: (_gst_event_free):
|
||||||
|
When freeing a navigation event, free the structure
|
||||||
|
also
|
||||||
|
|
||||||
2004-01-04 David Schleef <ds@schleef.org>
|
2004-01-04 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst/elements/gsttee.c: (gst_tee_init), (gst_tee_request_new_pad):
|
* gst/elements/gsttee.c: (gst_tee_init), (gst_tee_request_new_pad):
|
||||||
|
|
|
@ -240,10 +240,10 @@ void gst_caps_append_structure (GstCaps *caps, GstStructure *structure)
|
||||||
{
|
{
|
||||||
g_return_if_fail(caps != NULL);
|
g_return_if_fail(caps != NULL);
|
||||||
|
|
||||||
#ifdef USE_POISONING
|
|
||||||
STRUCTURE_POISON (structure);
|
|
||||||
#endif
|
|
||||||
if (structure){
|
if (structure){
|
||||||
|
#ifdef USE_POISONING
|
||||||
|
STRUCTURE_POISON (structure);
|
||||||
|
#endif
|
||||||
g_ptr_array_add (caps->structs, structure);
|
g_ptr_array_add (caps->structs, structure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,6 +93,8 @@ _gst_event_free (GstEvent* event)
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_TAG:
|
case GST_EVENT_TAG:
|
||||||
gst_tag_list_free (event->event_data.structure.structure);
|
gst_tag_list_free (event->event_data.structure.structure);
|
||||||
|
case GST_EVENT_NAVIGATION:
|
||||||
|
gst_structure_free (event->event_data.structure.structure);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue