[gst-cvs] gst-plugins-good: matroskademux: Correctly handle NULL GstIndex
Sebastian Dröge
slomo at kemper.freedesktop.org
Thu Sep 3 22:10:25 PDT 2009
Module: gst-plugins-good
Branch: master
Commit: b35b752c41c6b207db862309d6fae4e0977635f2
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=b35b752c41c6b207db862309d6fae4e0977635f2
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Fri Sep 4 07:10:03 2009 +0200
matroskademux: Correctly handle NULL GstIndex
---
gst/matroska/matroska-demux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index b366919..9cab419 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -5803,7 +5803,7 @@ gst_matroska_demux_set_index (GstElement * element, GstIndex * index)
GST_OBJECT_LOCK (demux);
if (demux->element_index)
gst_object_unref (demux->element_index);
- demux->element_index = gst_object_ref (index);
+ demux->element_index = index ? gst_object_ref (index) : NULL;
GST_OBJECT_UNLOCK (demux);
GST_DEBUG_OBJECT (demux, "Set index %" GST_PTR_FORMAT, demux->element_index);
}
More information about the Gstreamer-commits
mailing list