From 40273cf2d3bb9966d942f34735cf56537b5bed43 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 23 May 2011 13:49:01 +0300 Subject: [PATCH] video.c: use g_assert_not_reached() for logical error here. This will help to detect them closer to the source if they ever happen. --- gst-libs/gst/video/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c index 1cceec5fd1..db61f54a8c 100644 --- a/gst-libs/gst/video/video.c +++ b/gst-libs/gst/video/video.c @@ -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",