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 1bf0e220f95ca97a77b187b1f8782af59c43e1bf..6c6047d184f47382cfb246a887aed5c079eb8c24 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;