[0.11] gst-plugins-good: matroska: port to new memory API

Wim Taymans wtay at kemper.freedesktop.org
Wed Jan 25 03:42:36 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 684f504336ea9c27c7a0e01c7a67b5afd5d4af0c
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=684f504336ea9c27c7a0e01c7a67b5afd5d4af0c

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Wed Jan 25 12:41:30 2012 +0100

matroska: port to new memory API

---

 gst/matroska/matroska-demux.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 601c2b8..3e6ea42 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -2908,12 +2908,8 @@ gst_matroska_demux_check_subtitle_buffer (GstElement * element,
 
   sub_stream = (GstMatroskaTrackSubtitleContext *) stream;
 
-  gst_buffer_map (*buf, &map, GST_MAP_READ);
-
-  if (!data) {
-    gst_buffer_unmap (*buf, data, -1);
+  if (!gst_buffer_map (*buf, &map, GST_MAP_READ))
     return GST_FLOW_OK;
-  }
 
   if (!sub_stream->invalid_utf8) {
     if (g_utf8_validate ((gchar *) map.data, map.size, NULL)) {



More information about the gstreamer-commits mailing list