matroska: port to new memory API

This commit is contained in:
Wim Taymans 2012-01-25 12:41:30 +01:00
parent b4630dd3e0
commit 684f504336

View file

@ -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)) {