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:
parent
9b8992cbf1
commit
40273cf2d3
@ -658,10 +658,10 @@ gst_video_format_new_caps_raw (GstVideoFormat format)
|
|||||||
blue_mask = GST_VIDEO_COMP1_MASK_15_INT;
|
blue_mask = GST_VIDEO_COMP1_MASK_15_INT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return NULL;
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
} else if (bpp != 8) {
|
} else if (bpp != 8) {
|
||||||
return NULL;
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("video/x-raw-rgb",
|
caps = gst_caps_new_simple ("video/x-raw-rgb",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user