[gst-cvs] gst-plugins-bad: celtenc: Initialize variable
Edward Hervey
bilboed at kemper.freedesktop.org
Thu Nov 25 10:40:57 PST 2010
Module: gst-plugins-bad
Branch: master
Commit: b8c0b33536b0e74ed4b2b7ccfd508cdde9ba47b4
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=b8c0b33536b0e74ed4b2b7ccfd508cdde9ba47b4
Author: Edward Hervey <bilboed at bilboed.com>
Date: Thu Nov 25 18:29:31 2010 +0100
celtenc: Initialize variable
In the case the tag_setter returns something, empty_tags would be
garbage value.
---
ext/celt/gstceltenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/celt/gstceltenc.c b/ext/celt/gstceltenc.c
index fcba67c..4fd9ee8 100644
--- a/ext/celt/gstceltenc.c
+++ b/ext/celt/gstceltenc.c
@@ -588,7 +588,7 @@ static GstBuffer *
gst_celt_enc_create_metadata_buffer (GstCeltEnc * enc)
{
const GstTagList *tags;
- GstTagList *empty_tags;
+ GstTagList *empty_tags = NULL;
GstBuffer *comments = NULL;
tags = gst_tag_setter_get_tag_list (GST_TAG_SETTER (enc));
More information about the Gstreamer-commits
mailing list