mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
videosegmentclip: fail to set_caps if problem in caps structure
gst_video_segment_clip_set_caps () should return FALSE if there was a problem reading the framerate values from the caps structure.
This commit is contained in:
parent
a8b4c6c4ff
commit
3fd44b2dde
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ gst_video_segment_clip_set_caps (GstSegmentClip * base, GstCaps * caps)
|
|||
|
||||
s = gst_caps_get_structure (caps, 0);
|
||||
|
||||
ret = gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d);
|
||||
ret = (fps_d != 0);
|
||||
ret = gst_structure_get_fraction (s, "framerate", &fps_n, &fps_d)
|
||||
&& (fps_d != 0);
|
||||
|
||||
if (ret) {
|
||||
GST_DEBUG_OBJECT (self, "Configured framerate %d/%d", fps_n, fps_d);
|
||||
|
|
Loading…
Reference in a new issue