Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
Gem
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Albert Gräf
Gem
Commits
8224a7b3
Commit
8224a7b3
authored
Apr 02, 2019
by
IOhannes m zmoelnig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videoVIDS: allow 'verbose' setting without an open device
parent
3f018f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
plugins/videoVIDS/videoVIDS.cpp
plugins/videoVIDS/videoVIDS.cpp
+5
-5
No files found.
plugins/videoVIDS/videoVIDS.cpp
View file @
8224a7b3
...
...
@@ -235,6 +235,11 @@ void videoVIDS::setProperties(gem::Properties&props)
bool
videoVIDS
::
trySetProperties
(
gem
::
Properties
&
props
,
bool
canrestart
)
{
m_props
=
props
;
double
dval
;
if
(
props
.
get
(
"verbose"
,
dval
))
{
int
i
=
(
int
)
dval
;
videoInput
::
setVerbose
(
i
>
0
);
}
if
(
!
m_vi
)
return
false
;
std
::
vector
<
std
::
string
>
keys
=
props
.
keys
();
...
...
@@ -247,13 +252,8 @@ bool videoVIDS::trySetProperties(gem::Properties&props, bool canrestart)
return
true
;
for
(
unsigned
i
=
0
;
i
<
keys
.
size
();
i
++
)
{
std
::
string
key
=
keys
[
i
];
double
dval
;
std
::
string
sval
;
if
(
"verbose"
==
key
)
{
if
(
props
.
get
(
key
,
dval
))
{
int
i
=
(
int
)
dval
;
videoInput
::
setVerbose
(
i
>
0
);
}
}
else
if
((
"fps"
==
key
)
||
(
"framerate"
==
key
)
)
{
if
(
props
.
get
(
key
,
dval
))
{
if
(
m_vi
)
{
...
...
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