Commit 40273cf2 authored by Stefan Kost's avatar Stefan Kost
Browse files

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.
parent 9b8992cb
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment