mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +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/4221>
This commit is contained in:
parent
208bec067f
commit
5d0d42fb95
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_byte_reader_get_data (&reader, 0, (const guint8 **) data_out);
|
||||
*size_out = gst_byte_reader_get_remaining (&reader);
|
||||
gst_byte_reader_get_data (&reader, *size_out, (const guint8 **) data_out);
|
||||
|
||||
return TRUE;
|
||||
|
||||
release_err:
|
||||
|
|
Loading…
Reference in a new issue