mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
gst/gstevent.c: Sometimes a tag event arrives but the structure does not contain a valid tag list. Adding a safety ch...
Original commit message from CVS: 2004-02-10 Julien MOUTTE <julien@moutte.net> * gst/gstevent.c: (_gst_event_free): Sometimes a tag event arrives but the structure does not contain a valid tag list. Adding a safety check to remove a noisy warning in that case.
This commit is contained in:
parent
11466f9bbe
commit
c168ad6b4e
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-02-10 Julien MOUTTE <julien@moutte.net>
|
||||
|
||||
* gst/gstevent.c: (_gst_event_free): Sometimes a tag event arrives but
|
||||
the structure does not contain a valid tag list. Adding a safety check
|
||||
to remove a noisy warning in that case.
|
||||
|
||||
2004-02-10 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gst.c: fix name to be in line with others
|
||||
|
|
|
@ -92,7 +92,8 @@ _gst_event_free (GstEvent* event)
|
|||
}
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_TAG:
|
||||
gst_tag_list_free (event->event_data.structure.structure);
|
||||
if (GST_IS_TAG_LIST (event->event_data.structure.structure))
|
||||
gst_tag_list_free (event->event_data.structure.structure);
|
||||
break;
|
||||
case GST_EVENT_NAVIGATION:
|
||||
gst_structure_free (event->event_data.structure.structure);
|
||||
|
|
Loading…
Reference in a new issue