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
e4345c82
Commit
e4345c82
authored
Nov 25, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/modules.c: Allow for premature Ctrl-C escapes even while VLC
is loading its plugins.
parent
0863ba24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
src/libvlc.c
src/libvlc.c
+13
-8
src/misc/modules.c
src/misc/modules.c
+4
-4
No files found.
src/libvlc.c
View file @
e4345c82
...
...
@@ -2,7 +2,7 @@
* libvlc.c: main libvlc source
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* $Id: libvlc.c,v 1.10
3 2003/11/25 00:56:34 fenrir
Exp $
* $Id: libvlc.c,v 1.10
4 2003/11/25 12:35:15 sam
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -285,8 +285,8 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
vlc_mutex_lock
(
lockval
.
p_address
);
if
(
libvlc
.
p_module_bank
==
NULL
)
{
module_InitBank
(
p_
lib
vlc
);
module_LoadMain
(
p_
lib
vlc
);
module_InitBank
(
p_vlc
);
module_LoadMain
(
p_vlc
);
}
vlc_mutex_unlock
(
lockval
.
p_address
);
var_Destroy
(
p_libvlc
,
"libvlc"
);
...
...
@@ -376,8 +376,8 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
#endif
module_EndBank
(
p_vlc
);
module_InitBank
(
p_
lib
vlc
);
module_LoadMain
(
p_
lib
vlc
);
module_InitBank
(
p_vlc
);
module_LoadMain
(
p_vlc
);
config_LoadCmdLine
(
p_vlc
,
&
i_argc
,
ppsz_argv
,
VLC_TRUE
);
}
if
(
psz_language
)
free
(
psz_language
);
...
...
@@ -389,8 +389,13 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
* list of configuration options exported by each module and loads their
* default values.
*/
module_LoadBuiltins
(
p_libvlc
);
module_LoadPlugins
(
p_libvlc
);
module_LoadBuiltins
(
p_vlc
);
module_LoadPlugins
(
p_vlc
);
if
(
p_vlc
->
b_die
)
{
b_exit
=
VLC_TRUE
;
}
msg_Dbg
(
p_vlc
,
"module bank initialized, found %i modules"
,
libvlc
.
p_module_bank
->
i_children
);
...
...
@@ -764,7 +769,7 @@ int VLC_Destroy( int i_object )
* VLC_Die: ask vlc to die.
*****************************************************************************
* This function sets p_vlc->b_die to VLC_TRUE, but does not do any other
* task. It is your duty to call
vlc_e
nd and VLC_Destroy afterwards.
* task. It is your duty to call
VLC_E
nd and VLC_Destroy afterwards.
*****************************************************************************/
int
VLC_Die
(
int
i_object
)
{
...
...
src/misc/modules.c
View file @
e4345c82
...
...
@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.14
0 2003/11/19 13:10:48 gbazin
Exp $
* $Id: modules.c,v 1.14
1 2003/11/25 12:35:15 sam
Exp $
*
* Authors: Sam Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
...
...
@@ -678,7 +678,7 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
struct
dirent
*
file
;
#endif
if
(
i_maxdepth
<
0
)
if
(
p_this
->
p_vlc
->
b_die
||
i_maxdepth
<
0
)
{
return
;
}
...
...
@@ -738,7 +738,7 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
AllocatePluginFile
(
p_this
,
psz_path
);
}
}
while
(
FindNextFile
(
handle
,
&
finddata
)
);
while
(
!
p_this
->
p_vlc
->
b_die
&&
FindNextFile
(
handle
,
&
finddata
)
);
/* Close the directory */
FindClose
(
handle
);
...
...
@@ -753,7 +753,7 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
i_dirlen
=
strlen
(
psz_dir
);
/* Parse the directory and try to load all files it contains. */
while
(
(
file
=
readdir
(
dir
))
)
while
(
!
p_this
->
p_vlc
->
b_die
&&
(
file
=
readdir
(
dir
))
)
{
struct
stat
statbuf
;
unsigned
int
i_len
;
...
...
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