video.c: use g_assert_not_reached() for logical error here.
authorStefan Kost <ensonic@users.sf.net>
Mon, 23 May 2011 10:49:01 +0000 (13:49 +0300)
committerStefan Kost <ensonic@users.sf.net>
Mon, 23 May 2011 10:50:09 +0000 (13:50 +0300)
This will help to detect them closer to the source if they ever happen.

gst-libs/gst/video/video.c

index 1cceec5..db61f54 100644 (file)
@@ -658,10 +658,10 @@ gst_video_format_new_caps_raw (GstVideoFormat format)
           blue_mask = GST_VIDEO_COMP1_MASK_15_INT;
           break;
         default:
-          return NULL;
+          g_assert_not_reached ();
       }
     } else if (bpp != 8) {
-      return NULL;
+      g_assert_not_reached ();
     }
 
     caps = gst_caps_new_simple ("video/x-raw-rgb",