mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
basevideo: Fail if caps don't contain a framerate field
Return false from the caps parsing function if there is no framerate field in the provided caps
This commit is contained in:
parent
196acecc04
commit
b4fd433c57
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ gst_base_video_state_from_caps (GstVideoState * state, GstCaps * caps)
|
|||
gst_video_format_parse_caps (caps, &state->format,
|
||||
&state->width, &state->height);
|
||||
|
||||
gst_video_parse_caps_framerate (caps, &state->fps_n, &state->fps_d);
|
||||
if (!gst_video_parse_caps_framerate (caps, &state->fps_n, &state->fps_d))
|
||||
return FALSE;
|
||||
|
||||
state->par_n = 1;
|
||||
state->par_d = 1;
|
||||
|
|
Loading…
Reference in a new issue