Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
0e4feb1e
Commit
0e4feb1e
authored
Mar 02, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle -v correctly (i.e. as most other programs do)
parent
4ac9513c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
27 deletions
+3
-27
src/config/cmdline.c
src/config/cmdline.c
+3
-27
No files found.
src/config/cmdline.c
View file @
0e4feb1e
...
@@ -178,16 +178,11 @@ int config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
...
@@ -178,16 +178,11 @@ int config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
pp_shortopts
[(
int
)
p_item
->
i_short
]
=
p_item
;
pp_shortopts
[(
int
)
p_item
->
i_short
]
=
p_item
;
psz_shortopts
[
i_shortopts
]
=
p_item
->
i_short
;
psz_shortopts
[
i_shortopts
]
=
p_item
->
i_short
;
i_shortopts
++
;
i_shortopts
++
;
if
(
p_item
->
i_type
!=
CONFIG_ITEM_BOOL
)
if
(
p_item
->
i_type
!=
CONFIG_ITEM_BOOL
&&
p_item
->
i_short
!=
'v'
)
{
{
psz_shortopts
[
i_shortopts
]
=
':'
;
psz_shortopts
[
i_shortopts
]
=
':'
;
i_shortopts
++
;
i_shortopts
++
;
if
(
p_item
->
i_short
==
'v'
)
{
psz_shortopts
[
i_shortopts
]
=
':'
;
i_shortopts
++
;
}
}
}
}
}
}
}
...
@@ -308,26 +303,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
...
@@ -308,26 +303,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
var_Create
(
p_this
,
name
,
VLC_VAR_INTEGER
);
var_Create
(
p_this
,
name
,
VLC_VAR_INTEGER
);
if
(
i_cmd
==
'v'
)
if
(
i_cmd
==
'v'
)
{
{
if
(
vlc_optarg
)
i_verbose
++
;
/* -v */
{
if
(
*
vlc_optarg
==
'v'
)
/* eg. -vvv */
{
i_verbose
++
;
while
(
*
vlc_optarg
==
'v'
)
{
i_verbose
++
;
vlc_optarg
++
;
}
}
else
{
i_verbose
+=
atoi
(
vlc_optarg
);
/* eg. -v2 */
}
}
else
{
i_verbose
++
;
/* -v */
}
var_SetInteger
(
p_this
,
name
,
i_verbose
);
var_SetInteger
(
p_this
,
name
,
i_verbose
);
}
}
else
else
...
...
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