Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
aab8de5c
Commit
aab8de5c
authored
Nov 27, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ncurses: do not use pf_run
parent
76c94cb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
modules/gui/ncurses.c
modules/gui/ncurses.c
+10
-5
No files found.
modules/gui/ncurses.c
View file @
aab8de5c
...
...
@@ -178,6 +178,7 @@ struct pl_item_t
struct
intf_sys_t
{
vlc_thread_t
thread
;
input_thread_t
*
p_input
;
bool
color
;
...
...
@@ -1753,13 +1754,12 @@ static inline void UpdateInput(intf_sys_t *sys, playlist_t *p_playlist)
/*****************************************************************************
* Run: ncurses thread
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
intf
)
static
void
*
Run
(
void
*
data
)
{
intf_thread_t
*
intf
=
data
;
intf_sys_t
*
sys
=
intf
->
p_sys
;
playlist_t
*
p_playlist
=
pl_Get
(
intf
);
int
canc
=
vlc_savecancel
();
var_AddCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
intf
);
var_AddCallback
(
p_playlist
,
"item-change"
,
ItemChanged
,
intf
);
var_AddCallback
(
p_playlist
,
"playlist-item-append"
,
PlaylistChanged
,
intf
);
...
...
@@ -1773,7 +1773,7 @@ static void Run(intf_thread_t *intf)
var_DelCallback
(
p_playlist
,
"intf-change"
,
PlaylistChanged
,
intf
);
var_DelCallback
(
p_playlist
,
"item-change"
,
ItemChanged
,
intf
);
var_DelCallback
(
p_playlist
,
"playlist-item-append"
,
PlaylistChanged
,
intf
);
vlc_restorecancel
(
canc
)
;
return
NULL
;
}
/*****************************************************************************
...
...
@@ -1824,7 +1824,10 @@ static int Open(vlc_object_t *p_this)
PlaylistRebuild
(
intf
),
PL_UNLOCK
;
intf
->
pf_run
=
Run
;
if
(
vlc_clone
(
&
sys
->
thread
,
Run
,
intf
,
VLC_THREAD_PRIORITY_LOW
))
abort
();
/* TODO */
intf
->
pf_run
=
NULL
;
return
VLC_SUCCESS
;
}
...
...
@@ -1835,6 +1838,8 @@ static void Close(vlc_object_t *p_this)
{
intf_sys_t
*
sys
=
((
intf_thread_t
*
)
p_this
)
->
p_sys
;
vlc_join
(
sys
->
thread
,
NULL
);
PlaylistDestroy
(
sys
);
DirsDestroy
(
sys
);
...
...
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