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
8ac46648
Commit
8ac46648
authored
Jun 20, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intf-add: do not list CLI if stdin is not a TTY (fix #4955)
parent
2562696b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/interface/interface.c
src/interface/interface.c
+6
-4
No files found.
src/interface/interface.c
View file @
8ac46648
...
@@ -85,10 +85,12 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
...
@@ -85,10 +85,12 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
VLC_VAR_HASCHOICE
|
VLC_VAR_ISCOMMAND
);
VLC_VAR_HASCHOICE
|
VLC_VAR_ISCOMMAND
);
text
.
psz_string
=
_
(
"Add Interface"
);
text
.
psz_string
=
_
(
"Add Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
if
(
isatty
(
0
)
)
{
val
.
psz_string
=
(
char
*
)
"rc"
;
val
.
psz_string
=
(
char
*
)
"rc"
;
text
.
psz_string
=
(
char
*
)
_
(
"Console"
);
text
.
psz_string
=
(
char
*
)
_
(
"Console"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
}
val
.
psz_string
=
(
char
*
)
"telnet"
;
val
.
psz_string
=
(
char
*
)
"telnet"
;
text
.
psz_string
=
(
char
*
)
_
(
"Telnet"
);
text
.
psz_string
=
(
char
*
)
_
(
"Telnet"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
...
...
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