Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tim-Philipp Müller
gst-plugins-good
Commits
3e574eaf
Commit
3e574eaf
authored
Feb 28, 2010
by
Sebastian Dröge
Committed by
Tim-Philipp Müller
May 11, 2010
Browse files
imagefreeze: Set undefined framerate in sink getcaps function
parent
53de7943
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst/imagefreeze/gstimagefreeze.c
View file @
3e574eaf
...
...
@@ -251,6 +251,7 @@ gst_image_freeze_sink_getcaps (GstPad * pad)
{
GstImageFreeze
*
self
=
GST_IMAGE_FREEZE
(
gst_pad_get_parent
(
pad
));
GstCaps
*
ret
,
*
tmp
;
guint
i
,
n
;
if
(
GST_PAD_CAPS
(
pad
))
{
ret
=
gst_caps_copy
(
GST_PAD_CAPS
(
pad
));
...
...
@@ -265,6 +266,15 @@ gst_image_freeze_sink_getcaps (GstPad * pad)
ret
=
gst_caps_copy
(
gst_pad_get_pad_template_caps
(
pad
));
}
n
=
gst_caps_get_size
(
ret
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
GstStructure
*
s
=
gst_caps_get_structure
(
ret
,
i
);
gst_structure_remove_field
(
s
,
"framerate"
);
gst_structure_set
(
s
,
"framerate"
,
GST_TYPE_FRACTION_RANGE
,
0
,
1
,
G_MAXINT
,
1
,
NULL
);
}
done:
gst_object_unref
(
self
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment