summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-06-29 20:11:58 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-06-29 20:11:58 +0200
commit78ab2cdffd8c541bb3facf69d570fd9fa6d36ba5 (patch)
tree4f97e33c24a6949bb9b47fe44b60587911bc3291 /gst
parent64160a1392b5fa9e47b424ae45441b376ca5a410 (diff)
vc1parse: Fix compiler warnings when compiling with G_DISABLE_ASSERT
Diffstat (limited to 'gst')
-rw-r--r--gst/videoparsers/gstvc1parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/videoparsers/gstvc1parse.c b/gst/videoparsers/gstvc1parse.c
index 12af1c291..e5839113b 100644
--- a/gst/videoparsers/gstvc1parse.c
+++ b/gst/videoparsers/gstvc1parse.c
@@ -573,7 +573,7 @@ static gboolean
gst_vc1_parse_update_caps (GstVC1Parse * vc1parse)
{
GstCaps *caps;
- GstVC1Profile profile;
+ GstVC1Profile profile = -1;
const gchar *stream_format, *header_format;
if (gst_pad_has_current_caps (GST_BASE_PARSE_SRC_PAD (vc1parse))
@@ -611,7 +611,7 @@ gst_vc1_parse_update_caps (GstVC1Parse * vc1parse)
g_assert_not_reached ();
if (profile == GST_VC1_PROFILE_ADVANCED) {
- const gchar *level;
+ const gchar *level = NULL;
/* Caller must make sure this is valid here */
g_assert (vc1parse->seq_hdr_buffer);
switch ((GstVC1Level) vc1parse->seq_hdr.advanced.level) {
@@ -651,7 +651,7 @@ gst_vc1_parse_update_caps (GstVC1Parse * vc1parse)
"profile", G_TYPE_STRING, profile_str, NULL);
if (vc1parse->seq_layer_buffer) {
- const gchar *level;
+ const gchar *level = NULL;
switch (vc1parse->seq_layer.struct_b.level) {
case GST_VC1_LEVEL_LOW:
level = "low";