mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
mpegtsdemux: fix stream_info descriptor parsing
This commit is contained in:
parent
4dda05ad66
commit
bc91adcf55
1 changed files with 6 additions and 4 deletions
|
@ -307,11 +307,13 @@ mpegts_get_descriptor_from_stream (MpegTSBaseStream * stream, guint8 tag)
|
|||
if (descriptors) {
|
||||
for (i = 0; i < descriptors->n_values; i++) {
|
||||
GValue *value = g_value_array_get_nth (descriptors, i);
|
||||
guint8 *desc = g_value_dup_boxed (value);
|
||||
if (DESC_TAG (desc) == tag) {
|
||||
retval = desc;
|
||||
GString *desc = g_value_dup_boxed (value);
|
||||
if (DESC_TAG (desc->str) == tag) {
|
||||
retval = (guint8 *) desc->str;
|
||||
g_string_free (desc, FALSE);
|
||||
break;
|
||||
}
|
||||
} else
|
||||
g_string_free (desc, FALSE);
|
||||
}
|
||||
g_value_array_free (descriptors);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue