Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b3f95b95
Commit
b3f95b95
authored
Jan 01, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intf-add: small simplification
parent
11c1769c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
src/interface/interface.c
src/interface/interface.c
+6
-12
No files found.
src/interface/interface.c
View file @
b3f95b95
...
...
@@ -82,20 +82,20 @@ int intf_Create( vlc_object_t *p_this, const char *chain )
if
(
isatty
(
0
)
)
#endif
{
val
.
psz_string
=
(
char
*
)
"rc"
;
val
.
psz_string
=
(
char
*
)
"rc
,none
"
;
text
.
psz_string
=
(
char
*
)
_
(
"Console"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
}
val
.
psz_string
=
(
char
*
)
"telnet"
;
val
.
psz_string
=
(
char
*
)
"telnet
,none
"
;
text
.
psz_string
=
(
char
*
)
_
(
"Telnet"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"http"
;
val
.
psz_string
=
(
char
*
)
"http
,none
"
;
text
.
psz_string
=
(
char
*
)
_
(
"Web"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"logger"
;
val
.
psz_string
=
(
char
*
)
"logger
,none
"
;
text
.
psz_string
=
(
char
*
)
_
(
"Debug logging"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"gestures"
;
val
.
psz_string
=
(
char
*
)
"gestures
,none
"
;
text
.
psz_string
=
(
char
*
)
_
(
"Mouse Gestures"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
...
...
@@ -163,14 +163,8 @@ static int AddIntfCallback( vlc_object_t *p_this, char const *psz_cmd,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
(
void
)
psz_cmd
;
(
void
)
oldval
;
(
void
)
p_data
;
char
*
psz_intf
;
/* Try to create the interface */
if
(
asprintf
(
&
psz_intf
,
"%s,none"
,
newval
.
psz_string
)
==
-
1
)
return
VLC_ENOMEM
;
int
ret
=
intf_Create
(
VLC_OBJECT
(
p_this
->
p_libvlc
),
psz_intf
);
free
(
psz_intf
);
int
ret
=
intf_Create
(
VLC_OBJECT
(
p_this
->
p_libvlc
),
newval
.
psz_string
);
if
(
ret
)
msg_Err
(
p_this
,
"interface
\"
%s
\"
initialization failed"
,
newval
.
psz_string
);
...
...
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