uvch264src: Fix compiler warning when compiling with G_DISABLE_ASSERT
authorSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 18:13:10 +0000 (20:13 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 18:13:10 +0000 (20:13 +0200)
sys/uvch264/gstuvch264_src.c

index 1bf0e22..6c6047d 100644 (file)
@@ -2728,6 +2728,8 @@ gst_uvc_h264_src_construct_pipeline (GstBaseCameraSrc * bcamsrc)
       self->secondary_format = UVC_H264_SRC_FORMAT_RAW;
     } else {
       g_assert_not_reached ();
+      type = NONE_NONE;
+      self->main_format = UVC_H264_SRC_FORMAT_NONE;
     }
   } else {
     type = NONE_NONE;