mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
validate:media-descriptor: Handle stream with no tags
It was segfaulting before.
This commit is contained in:
parent
8fb3e6112c
commit
c8a99218de
1 changed files with 6 additions and 4 deletions
|
@ -147,11 +147,13 @@ serialize_filenode (GstMediaDescriptorWriter * writer)
|
|||
}
|
||||
|
||||
tagsnode = snode->tags;
|
||||
STR_APPEND3 (tagsnode->str_open);
|
||||
for (tmp3 = tagsnode->tags; tmp3; tmp3 = tmp3->next) {
|
||||
STR_APPEND4 (((TagNode *) tmp3->data)->str_open);
|
||||
if (tagsnode) {
|
||||
STR_APPEND3 (tagsnode->str_open);
|
||||
for (tmp3 = tagsnode->tags; tmp3; tmp3 = tmp3->next) {
|
||||
STR_APPEND4 (((TagNode *) tmp3->data)->str_open);
|
||||
}
|
||||
STR_APPEND3 (tagsnode->str_close);
|
||||
}
|
||||
STR_APPEND3 (tagsnode->str_close);
|
||||
|
||||
STR_APPEND2 (snode->str_close);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue