From: Julien Moutte Date: Tue, 10 Feb 2004 11:57:27 +0000 (+0000) Subject: gst/gstevent.c: Sometimes a tag event arrives but the structure does not contain... X-Git-Tag: BRANCH-RELEASE-0_7_5-ROOT~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c168ad6b4e7eb0ab60e30a0b01798f5d81051a35;p=platform%2Fupstream%2Fgstreamer.git 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 * 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. --- diff --git a/ChangeLog b/ChangeLog index 95135d1..f4a09d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-10 Julien MOUTTE + + * 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 * gst/gst.c: fix name to be in line with others diff --git a/gst/gstevent.c b/gst/gstevent.c index a3301e8..f5a842b 100644 --- a/gst/gstevent.c +++ b/gst/gstevent.c @@ -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);