Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
36aca393
Commit
36aca393
authored
Sep 14, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove intf_ShouldDie
libvlc kills the interfaces when it dies anyway.
parent
872779fb
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
19 additions
and
23 deletions
+19
-23
include/vlc_interface.h
include/vlc_interface.h
+0
-4
modules/control/gestures.c
modules/control/gestures.c
+2
-2
modules/control/lirc.c
modules/control/lirc.c
+1
-1
modules/control/netsync.c
modules/control/netsync.c
+1
-1
modules/control/rc.c
modules/control/rc.c
+3
-3
modules/control/showintf.c
modules/control/showintf.c
+2
-2
modules/gui/beos/Interface.cpp
modules/gui/beos/Interface.cpp
+1
-1
modules/gui/fbosd.c
modules/gui/fbosd.c
+1
-1
modules/gui/ncurses.c
modules/gui/ncurses.c
+1
-1
modules/gui/pda/pda.c
modules/gui/pda/pda.c
+3
-3
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-1
modules/gui/wince/timer.cpp
modules/gui/wince/timer.cpp
+2
-2
modules/gui/wxwidgets/timer.cpp
modules/gui/wxwidgets/timer.cpp
+1
-1
No files found.
include/vlc_interface.h
View file @
36aca393
...
...
@@ -108,10 +108,6 @@ VLC_EXPORT( intf_thread_t *, __intf_Create, ( vlc_object_t *, const char * )
VLC_EXPORT
(
int
,
intf_RunThread
,
(
intf_thread_t
*
)
);
VLC_EXPORT
(
void
,
intf_StopThread
,
(
intf_thread_t
*
)
);
/* If the interface is in the main thread, it should listen both to
* p_intf->b_die and p_libvlc->b_die */
#define intf_ShouldDie( p_intf ) (p_intf->b_die || p_intf->p_libvlc->b_die )
#define intf_Eject(a,b) __intf_Eject(VLC_OBJECT(a),b)
VLC_EXPORT
(
int
,
__intf_Eject
,
(
vlc_object_t
*
,
const
char
*
)
);
...
...
modules/control/gestures.c
View file @
36aca393
...
...
@@ -182,7 +182,7 @@ static void RunIntf( intf_thread_t *p_intf )
msg_Dbg
(
p_intf
,
"interface thread initialized"
);
/* Main loop */
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
...
...
@@ -461,7 +461,7 @@ static int InitThread( intf_thread_t * p_intf )
{
char
*
psz_button
;
/* we might need some locking here */
if
(
!
intf_ShouldDi
e
(
p_intf
)
)
if
(
vlc_object_aliv
e
(
p_intf
)
)
{
/* p_intf->change_lock locking strategy:
* - Every access to p_intf->p_sys are locked threw p_intf->change_lock
...
...
modules/control/lirc.c
View file @
36aca393
...
...
@@ -175,7 +175,7 @@ static int Process( intf_thread_t *p_intf )
if
(
code
==
NULL
)
return
0
;
while
(
!
intf_ShouldDi
e
(
p_intf
)
while
(
vlc_object_aliv
e
(
p_intf
)
&&
(
lirc_code2char
(
p_intf
->
p_sys
->
config
,
code
,
&
c
)
==
0
)
&&
(
c
!=
NULL
)
)
{
...
...
modules/control/netsync.c
View file @
36aca393
...
...
@@ -150,7 +150,7 @@ static void Run( intf_thread_t *p_intf )
/* High priority thread */
vlc_thread_set_priority
(
p_intf
,
VLC_THREAD_PRIORITY_INPUT
);
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
/* Update the input */
if
(
p_input
==
NULL
)
...
...
modules/control/rc.c
View file @
36aca393
...
...
@@ -479,7 +479,7 @@ static void Run( intf_thread_t *p_intf )
}
#endif
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
char
*
psz_cmd
,
*
psz_arg
;
bool
b_complete
;
...
...
@@ -2050,7 +2050,7 @@ bool ReadWin32( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
while
(
WaitForSingleObject
(
p_intf
->
p_sys
->
hConsoleIn
,
INTF_IDLE_SLEEP
/
1000
)
==
WAIT_OBJECT_0
)
{
while
(
!
intf_ShouldDi
e
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
while
(
vlc_object_aliv
e
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
ReadConsoleInput
(
p_intf
->
p_sys
->
hConsoleIn
,
&
input_record
,
1
,
&
i_dw
)
)
{
...
...
@@ -2120,7 +2120,7 @@ bool ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
}
#endif
while
(
!
intf_ShouldDi
e
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
while
(
vlc_object_aliv
e
(
p_intf
)
&&
*
pi_size
<
MAX_LINE_LENGTH
&&
(
i_read
=
net_Read
(
p_intf
,
p_intf
->
p_sys
->
i_socket
==
-
1
?
0
/*STDIN_FILENO*/
:
p_intf
->
p_sys
->
i_socket
,
NULL
,
(
uint8_t
*
)
p_buffer
+
*
pi_size
,
1
,
false
)
)
>
0
)
...
...
modules/control/showintf.c
View file @
36aca393
...
...
@@ -121,7 +121,7 @@ static void RunIntf( intf_thread_t *p_intf )
}
/* Main loop */
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
...
...
@@ -179,7 +179,7 @@ static void RunIntf( intf_thread_t *p_intf )
*****************************************************************************/
static
int
InitThread
(
intf_thread_t
*
p_intf
)
{
if
(
!
intf_ShouldDi
e
(
p_intf
)
)
if
(
vlc_object_aliv
e
(
p_intf
)
)
{
vlc_mutex_lock
(
&
p_intf
->
change_lock
);
...
...
modules/gui/beos/Interface.cpp
View file @
36aca393
...
...
@@ -120,7 +120,7 @@ void CloseIntf ( vlc_object_t *p_this )
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
p_intf
->
p_sys
->
p_window
->
UpdateInterface
();
msleep
(
INTF_IDLE_SLEEP
);
...
...
modules/gui/fbosd.c
View file @
36aca393
...
...
@@ -1272,7 +1272,7 @@ static void Run( intf_thread_t *p_intf )
intf_sys_t
*
p_sys
=
(
intf_sys_t
*
)
p_intf
->
p_sys
;
int
canc
=
vlc_savecancel
();
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
int
i
;
...
...
modules/gui/ncurses.c
View file @
36aca393
...
...
@@ -404,7 +404,7 @@ static void Run( intf_thread_t *p_intf )
var_AddCallback
(
p_playlist
,
"item-append"
,
PlaylistChanged
,
p_intf
);
var_AddCallback
(
p_playlist
,
"item-change"
,
PlaylistChanged
,
p_intf
);
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
msleep
(
INTF_IDLE_SLEEP
);
...
...
modules/gui/pda/pda.c
View file @
36aca393
...
...
@@ -317,7 +317,7 @@ static void Run( intf_thread_t *p_intf )
#ifdef NEED_GTK2_MAIN
msg_Dbg
(
p_intf
,
"Manage GTK keyboard events using threads"
);
while
(
!
intf_ShouldDi
e
(
p_intf
)
)
while
(
vlc_object_aliv
e
(
p_intf
)
)
{
Manage
(
p_intf
);
...
...
@@ -516,14 +516,14 @@ static int Manage( intf_thread_t *p_intf )
}
vlc_object_unlock
(
p_input
);
}
else
if
(
p_intf
->
p_sys
->
b_playing
&&
!
intf_ShouldDi
e
(
p_intf
)
)
else
if
(
p_intf
->
p_sys
->
b_playing
&&
vlc_object_aliv
e
(
p_intf
)
)
{
GtkModeManage
(
p_intf
);
p_intf
->
p_sys
->
b_playing
=
0
;
}
#ifndef NEED_GTK2_MAIN
if
(
intf_ShouldDi
e
(
p_intf
)
)
if
(
!
vlc_object_aliv
e
(
p_intf
)
)
{
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
36aca393
...
...
@@ -924,7 +924,7 @@ void MainInterface::setRate( int rate )
void
MainInterface
::
updateOnTimer
()
{
/* No event for dying */
if
(
intf_ShouldDi
e
(
p_intf
)
)
if
(
!
vlc_object_aliv
e
(
p_intf
)
)
{
QApplication
::
closeAllWindows
();
QApplication
::
quit
();
...
...
modules/gui/wince/timer.cpp
View file @
36aca393
...
...
@@ -210,14 +210,14 @@ void Timer::Notify( void )
}
}
}
else
if
(
p_intf
->
p_sys
->
b_playing
&&
!
intf_ShouldDi
e
(
p_intf
)
)
else
if
(
p_intf
->
p_sys
->
b_playing
&&
vlc_object_aliv
e
(
p_intf
)
)
{
p_intf
->
p_sys
->
b_playing
=
0
;
p_main_interface
->
TogglePlayButton
(
PAUSE_S
);
i_old_playing_status
=
PAUSE_S
;
}
if
(
intf_ShouldDi
e
(
p_intf
)
)
if
(
!
vlc_object_aliv
e
(
p_intf
)
)
{
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
...
...
modules/gui/wxwidgets/timer.cpp
View file @
36aca393
...
...
@@ -96,7 +96,7 @@ void Timer::Notify()
p_intf
->
p_sys
->
b_intf_show
=
false
;
}
if
(
intf_ShouldDi
e
(
p_intf
)
)
if
(
!
vlc_object_aliv
e
(
p_intf
)
)
{
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
...
...
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