summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-10-07 16:15:55 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-10-09 17:49:04 +0200
commitfaaa32dccbbec6ae1f29e5dcc21de2ef74c8ad89 (patch)
tree9d3adc1a192c4fae39096b110bd347ea537c85c7
parent533106203c9d687d5dfc21eb70680fb1da1239c6 (diff)
qtdemux: NULL is not a valid taglist
-rw-r--r--gst/qtdemux/qtdemux.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 105a1fa2..b744d4ce 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -3558,12 +3558,14 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
if (stream->pending_tags)
gst_tag_list_free (stream->pending_tags);
stream->pending_tags = list;
- /* post now, send event on pad later */
- GST_DEBUG_OBJECT (qtdemux, "Posting tags %" GST_PTR_FORMAT,
- stream->pending_tags);
- gst_element_post_message (GST_ELEMENT (qtdemux),
- gst_message_new_tag_full (GST_OBJECT (qtdemux), stream->pad,
- gst_tag_list_copy (list)));
+ if (list) {
+ /* post now, send event on pad later */
+ GST_DEBUG_OBJECT (qtdemux, "Posting tags %" GST_PTR_FORMAT, list);
+ gst_element_post_message (GST_ELEMENT (qtdemux),
+ gst_message_new_tag_full (GST_OBJECT (qtdemux), stream->pad,
+ gst_tag_list_copy (list)));
+ }
+ /* global tags go on each pad anyway */
stream->send_global_tags = TRUE;
}
done: