Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
2e5daf15
Commit
2e5daf15
authored
May 12, 2014
by
Tim-Philipp Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2src: minor GValue handling optimisation in probing code
parent
f63bdd04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
sys/v4l2/gstv4l2object.c
sys/v4l2/gstv4l2object.c
+1
-2
No files found.
sys/v4l2/gstv4l2object.c
View file @
2e5daf15
...
...
@@ -1767,8 +1767,7 @@ return_data:
gst_v4l2src_value_simplify
(
&
rates
);
/* only change the framerate on the template when we have a valid probed new
* value */
gst_structure_set_value
(
s
,
"framerate"
,
&
rates
);
g_value_unset
(
&
rates
);
gst_structure_take_value
(
s
,
"framerate"
,
&
rates
);
}
else
if
(
v4l2object
->
type
==
V4L2_BUF_TYPE_VIDEO_CAPTURE
||
v4l2object
->
type
==
V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
)
{
gst_structure_set
(
s
,
"framerate"
,
GST_TYPE_FRACTION_RANGE
,
0
,
1
,
100
,
1
,
...
...
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