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
88461141
Commit
88461141
authored
Sep 30, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: display random/repeat/loop status
parent
af44752c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
modules/gui/ncurses.c
modules/gui/ncurses.c
+16
-8
No files found.
modules/gui/ncurses.c
View file @
88461141
...
...
@@ -1258,24 +1258,32 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
var_Get
(
p_input
,
"state"
,
&
val
);
if
(
val
.
i_int
==
PLAYING_S
)
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Playing"
);
mvnprintw
(
y
,
0
,
COLS
,
" State : Playing"
);
}
else
if
(
val
.
i_int
==
OPENING_S
)
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Open
ning/Connecting"
);
mvnprintw
(
y
,
0
,
COLS
,
" State : Ope
ning/Connecting"
);
}
else
if
(
val
.
i_int
==
BUFFERING_S
)
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Buffering"
);
mvnprintw
(
y
,
0
,
COLS
,
" State : Buffering"
);
}
else
if
(
val
.
i_int
==
PAUSE_S
)
{
mvnprintw
(
y
++
,
0
,
COLS
,
" State : Paused"
);
}
else
{
y
++
;
mvnprintw
(
y
,
0
,
COLS
,
" State : Paused"
);
}
char
*
psz_playlist_state
=
malloc
(
25
);
/* strlen( "[Repeat] [Random] [Loop] ) == 24, + '\0' */
psz_playlist_state
[
0
]
=
'\0'
;
if
(
var_GetBool
(
p_sys
->
p_playlist
,
"repeat"
)
)
strcat
(
psz_playlist_state
,
"[Repeat] "
);
if
(
var_GetBool
(
p_sys
->
p_playlist
,
"random"
)
)
strcat
(
psz_playlist_state
,
"[Random] "
);
if
(
var_GetBool
(
p_sys
->
p_playlist
,
"loop"
)
)
strcat
(
psz_playlist_state
,
"[Loop]"
);
mvnprintw
(
y
++
,
32
,
COLS
,
psz_playlist_state
);
free
(
psz_playlist_state
);
if
(
val
.
i_int
!=
INIT_S
&&
val
.
i_int
!=
END_S
)
{
audio_volume_t
i_volume
;
...
...
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