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
08223d48
Commit
08223d48
authored
Nov 27, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pf_run
parent
ed41887c
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
0 additions
and
44 deletions
+0
-44
include/vlc_interface.h
include/vlc_interface.h
+0
-3
modules/control/dbus/dbus.c
modules/control/dbus/dbus.c
+0
-1
modules/control/dummy.c
modules/control/dummy.c
+0
-2
modules/control/hotkeys.c
modules/control/hotkeys.c
+0
-1
modules/control/lirc.c
modules/control/lirc.c
+0
-2
modules/control/motion.c
modules/control/motion.c
+0
-1
modules/control/netsync.c
modules/control/netsync.c
+0
-1
modules/control/ntservice.c
modules/control/ntservice.c
+0
-1
modules/control/rc.c
modules/control/rc.c
+0
-2
modules/gui/ncurses.c
modules/gui/ncurses.c
+0
-1
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+0
-2
src/interface/interface.c
src/interface/interface.c
+0
-27
No files found.
include/vlc_interface.h
View file @
08223d48
...
...
@@ -52,15 +52,12 @@ typedef struct intf_thread_t
VLC_COMMON_MEMBERS
struct
intf_thread_t
*
p_next
;
/** LibVLC interfaces book keeping */
vlc_thread_t
thread
;
/** LibVLC thread */
/* Thread properties and locks */
/* Specific interfaces */
intf_sys_t
*
p_sys
;
/** system interface */
/** Interface module */
module_t
*
p_module
;
void
(
*
pf_run
)
(
struct
intf_thread_t
*
);
/** Run function */
/** Specific for dialogs providers */
void
(
*
pf_show_dialog
)
(
struct
intf_thread_t
*
,
int
,
int
,
...
...
modules/control/dbus/dbus.c
View file @
08223d48
...
...
@@ -231,7 +231,6 @@ static int Open( vlc_object_t *p_this )
dbus_connection_flush
(
p_conn
);
p_intf
->
pf_run
=
NULL
;
p_intf
->
p_sys
=
p_sys
;
p_sys
->
p_conn
=
p_conn
;
p_sys
->
p_events
=
vlc_array_new
();
...
...
modules/control/dummy.c
View file @
08223d48
...
...
@@ -70,7 +70,5 @@ static int Open( vlc_object_t *p_this )
msg_Info
(
p_intf
,
"using the dummy interface module..."
);
p_intf
->
pf_run
=
NULL
;
return
VLC_SUCCESS
;
}
modules/control/hotkeys.c
View file @
08223d48
...
...
@@ -123,7 +123,6 @@ static int Open( vlc_object_t *p_this )
return
VLC_ENOMEM
;
p_intf
->
p_sys
=
p_sys
;
p_intf
->
pf_run
=
NULL
;
p_sys
->
p_last_vout
=
NULL
;
p_intf
->
p_sys
->
i_mousewheel_mode
=
...
...
modules/control/lirc.c
View file @
08223d48
...
...
@@ -97,8 +97,6 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
p_intf
->
pf_run
=
NULL
;
p_sys
->
i_fd
=
lirc_init
(
"vlc"
,
1
);
if
(
p_sys
->
i_fd
==
-
1
)
{
...
...
modules/control/motion.c
View file @
08223d48
...
...
@@ -93,7 +93,6 @@ error:
return
VLC_EGENERIC
;
}
p_intf
->
pf_run
=
NULL
;
p_intf
->
p_sys
=
p_sys
;
if
(
vlc_clone
(
&
p_sys
->
thread
,
RunIntf
,
p_intf
,
VLC_THREAD_PRIORITY_LOW
)
)
...
...
modules/control/netsync.c
View file @
08223d48
...
...
@@ -127,7 +127,6 @@ static int Open(vlc_object_t *object)
return
VLC_EGENERIC
;
}
intf
->
pf_run
=
NULL
;
intf
->
p_sys
=
sys
=
malloc
(
sizeof
(
*
sys
));
if
(
!
sys
)
{
net_Close
(
fd
);
...
...
modules/control/ntservice.c
View file @
08223d48
...
...
@@ -111,7 +111,6 @@ static int Activate( vlc_object_t *p_this )
if
(
unlikely
(
p_sys
==
NULL
)
)
return
VLC_ENOMEM
;
p_intf
->
pf_run
=
NULL
;
p_intf
->
p_sys
=
p_sys
;
if
(
vlc_clone
(
&
p_sys
->
thread
,
Run
,
p_intf
,
VLC_THREAD_PRIORITY_LOW
)
)
...
...
modules/control/rc.c
View file @
08223d48
...
...
@@ -330,8 +330,6 @@ static int Activate( vlc_object_t *p_this )
/* Non-buffered stdout */
setvbuf
(
stdout
,
(
char
*
)
NULL
,
_IOLBF
,
0
);
p_intf
->
pf_run
=
NULL
;
#ifdef WIN32
p_intf
->
p_sys
->
b_quiet
=
var_InheritBool
(
p_intf
,
"rc-quiet"
);
if
(
!
p_intf
->
p_sys
->
b_quiet
)
...
...
modules/gui/ncurses.c
View file @
08223d48
...
...
@@ -1827,7 +1827,6 @@ static int Open(vlc_object_t *p_this)
if
(
vlc_clone
(
&
sys
->
thread
,
Run
,
intf
,
VLC_THREAD_PRIORITY_LOW
))
abort
();
/* TODO */
intf
->
pf_run
=
NULL
;
return
VLC_SUCCESS
;
}
...
...
modules/misc/audioscrobbler.c
View file @
08223d48
...
...
@@ -430,8 +430,6 @@ static int Open(vlc_object_t *p_this)
var_AddCallback
(
pl_Get
(
p_intf
),
"activity"
,
ItemChange
,
p_intf
);
p_intf
->
pf_run
=
NULL
;
return
VLC_SUCCESS
;
}
...
...
src/interface/interface.c
View file @
08223d48
...
...
@@ -127,15 +127,6 @@ int intf_Create( vlc_object_t *p_this, const char *chain )
goto
error
;
}
/* Run the interface in a separate thread */
if
(
p_intf
->
pf_run
&&
vlc_clone
(
&
p_intf
->
thread
,
RunInterface
,
p_intf
,
VLC_THREAD_PRIORITY_LOW
)
)
{
msg_Err
(
p_intf
,
"cannot spawn interface thread"
);
goto
error
;
}
vlc_mutex_lock
(
&
lock
);
p_intf
->
p_next
=
libvlc_priv
(
p_libvlc
)
->
p_intf
;
libvlc_priv
(
p_libvlc
)
->
p_intf
=
p_intf
;
...
...
@@ -176,11 +167,6 @@ void intf_DestroyAll( libvlc_int_t *p_libvlc )
{
intf_thread_t
*
p_next
=
p_intf
->
p_next
;
if
(
p_intf
->
pf_run
)
{
vlc_cancel
(
p_intf
->
thread
);
vlc_join
(
p_intf
->
thread
,
NULL
);
}
module_unneed
(
p_intf
,
p_intf
->
p_module
);
config_ChainDestroy
(
p_intf
->
p_cfg
);
vlc_object_release
(
p_intf
);
...
...
@@ -191,19 +177,6 @@ void intf_DestroyAll( libvlc_int_t *p_libvlc )
/* Following functions are local */
/**
* RunInterface: setups necessary data and give control to the interface
*
* @param p_this: interface object
*/
static
void
*
RunInterface
(
void
*
p_this
)
{
intf_thread_t
*
p_intf
=
p_this
;
p_intf
->
pf_run
(
p_intf
);
return
NULL
;
}
static
int
AddIntfCallback
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
...
...
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