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:
Sebastian Dröge 2023-03-17 17:13:39 +02:00 committed by Tim-Philipp Müller
parent 208bec067f
commit 5d0d42fb95

View file

@ -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: