projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13848cc
)
basevideo: Fail if caps don't contain a framerate field
author
Jan Schmidt
<thaytan@noraisin.net>
Mon, 5 Oct 2009 14:47:58 +0000
(15:47 +0100)
committer
David Schleef
<ds@schleef.org>
Thu, 3 Jun 2010 02:28:16 +0000
(19:28 -0700)
Return false from the caps parsing function if there is no framerate
field in the provided caps
Merging previous commit into current codebase.
gst-libs/gst/video/gstbasevideoutils.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/gstbasevideoutils.c
b/gst-libs/gst/video/gstbasevideoutils.c
index 69f614b28ccde0a4a1b8362174aa93102a67f76a..9ae9d2fa1bbe523f426b61002c9a779ea0e12994 100644
(file)
--- a/
gst-libs/gst/video/gstbasevideoutils.c
+++ b/
gst-libs/gst/video/gstbasevideoutils.c
@@
-128,7
+128,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;