interleave: Fix unitialized variable compiler warning in test
authorSebastian Dröge <sebastian@centricular.com>
Sat, 8 Feb 2014 16:41:21 +0000 (17:41 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 8 Feb 2014 16:41:21 +0000 (17:41 +0100)
error: variable 'mask' is used uninitialized
whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]

tests/check/elements/interleave.c

index be0a4b6..51d169d 100644 (file)
@@ -482,6 +482,8 @@ sink_handoff_float32 (GstElement * element, GstBuffer * buffer, GstPad * pad,
       GST_AUDIO_CHANNEL_POSITION_REAR_CENTER
     };
     gst_audio_channel_positions_to_mask (pos, 2, FALSE, &mask);
+  } else {
+    g_assert_not_reached ();
   }
 
   caps = gst_caps_new_simple ("audio/x-raw",