mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
matroska: port to new memory API
This commit is contained in:
parent
b4630dd3e0
commit
684f504336
1 changed files with 1 additions and 5 deletions
|
@ -2908,12 +2908,8 @@ gst_matroska_demux_check_subtitle_buffer (GstElement * element,
|
||||||
|
|
||||||
sub_stream = (GstMatroskaTrackSubtitleContext *) stream;
|
sub_stream = (GstMatroskaTrackSubtitleContext *) stream;
|
||||||
|
|
||||||
gst_buffer_map (*buf, &map, GST_MAP_READ);
|
if (!gst_buffer_map (*buf, &map, GST_MAP_READ))
|
||||||
|
|
||||||
if (!data) {
|
|
||||||
gst_buffer_unmap (*buf, data, -1);
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
|
||||||
|
|
||||||
if (!sub_stream->invalid_utf8) {
|
if (!sub_stream->invalid_utf8) {
|
||||||
if (g_utf8_validate ((gchar *) map.data, map.size, NULL)) {
|
if (g_utf8_validate ((gchar *) map.data, map.size, NULL)) {
|
||||||
|
|
Loading…
Reference in a new issue