summaryrefslogtreecommitdiff
path: root/gst/segmentclip
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-01-15 11:44:52 +0000
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-01-15 11:51:15 +0000
commit3fd44b2dde996dfaefbc95063c175a57df54ae74 (patch)
tree2c416c54d9d9eaae6b5b10d154d40d277eb5d9a7 /gst/segmentclip
parenta8b4c6c4ff6fb190f0a2d10d9c6b1e6f3f6e9e56 (diff)
downloadgstreamer-plugins-bad-3fd44b2dde996dfaefbc95063c175a57df54ae74.tar.gz
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.
Diffstat (limited to 'gst/segmentclip')
-rw-r--r--gst/segmentclip/gstvideosegmentclip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/segmentclip/gstvideosegmentclip.c b/gst/segmentclip/gstvideosegmentclip.c
index 7430a65da..0b168e48e 100644
--- a/gst/segmentclip/gstvideosegmentclip.c
+++ b/gst/segmentclip/gstvideosegmentclip.c
@@ -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);