projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e06370
)
qtdemux: Do not unref a NULL stream_tags
author
Thibault Saunier
<tsaunier@igalia.com>
Fri, 25 May 2018 08:49:21 +0000
(10:49 +0200)
committer
Thibault Saunier
<tsaunier@igalia.com>
Fri, 25 May 2018 08:54:54 +0000
(10:54 +0200)
stream->stream_tags is reset to NULL once we expose the stream and
these have been consumed, we need to check that when cleaning up
the stream.
gst/isomp4/qtdemux.c
patch
|
blob
|
history
diff --git
a/gst/isomp4/qtdemux.c
b/gst/isomp4/qtdemux.c
index
ec4a8ad
..
4116f4c
100644
(file)
--- a/
gst/isomp4/qtdemux.c
+++ b/
gst/isomp4/qtdemux.c
@@
-2600,7
+2600,9
@@
gst_qtdemux_stream_clear (QtDemuxStream * stream)
entry->sparse = FALSE;
}
- gst_tag_list_unref (stream->stream_tags);
+ if (stream->stream_tags)
+ gst_tag_list_unref (stream->stream_tags);
+
stream->stream_tags = gst_tag_list_new_empty ();
gst_tag_list_set_scope (stream->stream_tags, GST_TAG_SCOPE_STREAM);
g_free (stream->redirect_uri);