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.
This commit is contained in:
Stefan Kost 2011-05-23 13:49:01 +03:00
parent 9b8992cbf1
commit 40273cf2d3

View 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",