mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
matroskademux: Make gst_byte_reader_get_data() usage less confusing
This is effectively the same behaviour but retrieving 0 bytes of data is confusing to read. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4210>
This commit is contained in:
parent
7e2a0779c3
commit
621ec7b6e8
1 changed files with 2 additions and 1 deletions
|
@ -592,8 +592,9 @@ gst_matroska_parse_protection_meta (gpointer * data_out, gsize * size_out,
|
||||||
gst_structure_set (info_protect, "subsample_count", G_TYPE_UINT, 0, NULL);
|
gst_structure_set (info_protect, "subsample_count", G_TYPE_UINT, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_byte_reader_get_data (&reader, 0, (const guint8 **) data_out);
|
|
||||||
*size_out = gst_byte_reader_get_remaining (&reader);
|
*size_out = gst_byte_reader_get_remaining (&reader);
|
||||||
|
gst_byte_reader_get_data (&reader, *size_out, (const guint8 **) data_out);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
release_err:
|
release_err:
|
||||||
|
|
Loading…
Reference in a new issue