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
e9976aca
Commit
e9976aca
authored
Oct 27, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: rearrange Run() to remove a variable
parent
0a902097
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
modules/gui/ncurses.c
modules/gui/ncurses.c
+9
-17
No files found.
modules/gui/ncurses.c
View file @
e9976aca
...
...
@@ -1869,12 +1869,10 @@ static void Run(intf_thread_t *p_intf)
{
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
bool
force_redraw
=
false
;
time_t
t_last_refresh
;
int
canc
=
vlc_savecancel
();
PlaylistRebuild
(
p_intf
);
Redraw
(
p_intf
,
&
t_last_refresh
);
var_AddCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
p_intf
);
...
...
@@ -1884,11 +1882,17 @@ static void Run(intf_thread_t *p_intf)
{
msleep
(
INTF_IDLE_SLEEP
);
/* Update the input */
PL_LOCK
;
if
(
p_sys
->
b_box_plidx_follow
&&
playlist_CurrentPlayingItem
(
p_playlist
))
FindIndex
(
p_sys
,
p_playlist
,
true
);
PL_UNLOCK
;
if
(
!
p_sys
->
p_input
)
{
p_sys
->
p_input
=
playlist_CurrentInput
(
p_playlist
);
force_redraw
=
true
;
if
(
p_sys
->
p_input
)
Redraw
(
p_intf
,
&
t_last_refresh
);
}
else
if
(
p_sys
->
p_input
->
b_dead
)
{
...
...
@@ -1896,22 +1900,10 @@ static void Run(intf_thread_t *p_intf)
p_sys
->
p_input
=
NULL
;
}
PL_LOCK
;
if
(
p_sys
->
b_box_plidx_follow
&&
playlist_CurrentPlayingItem
(
p_playlist
))
FindIndex
(
p_sys
,
p_playlist
,
true
);
PL_UNLOCK
;
while
(
HandleKey
(
p_intf
))
Redraw
(
p_intf
,
&
t_last_refresh
);
if
(
force_redraw
)
{
clear
();
Redraw
(
p_intf
,
&
t_last_refresh
);
force_redraw
=
false
;
}
else
if
((
time
(
0
)
-
t_last_refresh
)
>=
1
)
if
((
time
(
0
)
-
t_last_refresh
)
>=
1
)
Redraw
(
p_intf
,
&
t_last_refresh
);
}
var_DelCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
p_intf
);
...
...
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