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
93dacf03
Commit
93dacf03
authored
May 21, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- bye, bye "fast-mutex" and "win9x-cv-method" variables
parent
3202adfa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
31 deletions
+12
-31
activex/plugin.cpp
activex/plugin.cpp
+0
-14
mozilla/vlcplugin.cpp
mozilla/vlcplugin.cpp
+0
-14
src/misc/threads.c
src/misc/threads.c
+12
-3
No files found.
activex/plugin.cpp
View file @
93dacf03
...
@@ -483,20 +483,6 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
...
@@ -483,20 +483,6 @@ HRESULT VLCPlugin::getVLC(libvlc_instance_t** pp_libvlc)
if
(
_b_autoloop
)
if
(
_b_autoloop
)
ppsz_argv
[
ppsz_argc
++
]
=
"--loop"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--loop"
;
if
(
IsDebuggerPresent
()
)
{
/*
** VLC default threading mechanism is designed to be as compatible
** with POSIX as possible. However when debugged on win32, threads
** lose signals and eventually VLC get stuck during initialization.
** threading support can be configured to be more debugging friendly
** but it will be less compatible with POSIX.
** This is done by initializing with the following options:
*/
ppsz_argv
[
ppsz_argc
++
]
=
"--fast-mutex"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--win9x-cv-method=1"
;
}
_p_libvlc
=
libvlc_new
(
ppsz_argc
,
ppsz_argv
,
NULL
);
_p_libvlc
=
libvlc_new
(
ppsz_argc
,
ppsz_argv
,
NULL
);
if
(
NULL
==
_p_libvlc
)
if
(
NULL
==
_p_libvlc
)
{
{
...
...
mozilla/vlcplugin.cpp
View file @
93dacf03
...
@@ -98,20 +98,6 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
...
@@ -98,20 +98,6 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
RegCloseKey
(
h_key
);
RegCloseKey
(
h_key
);
}
}
ppsz_argv
[
ppsz_argc
++
]
=
"--no-one-instance"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--no-one-instance"
;
if
(
IsDebuggerPresent
()
)
{
/*
** VLC default threading mechanism is designed to be as compatible
** with POSIX as possible. However when debugged on win32, threads
** lose signals and eventually VLC get stuck during initialization.
** threading support can be configured to be more debugging friendly
** but it will be less compatible with POSIX.
** This is done by initializing with the following options:
*/
ppsz_argv
[
ppsz_argc
++
]
=
"--fast-mutex"
;
ppsz_argv
[
ppsz_argc
++
]
=
"--win9x-cv-method=1"
;
}
#if 0
#if 0
ppsz_argv[0] = "C:\\Cygwin\\home\\damienf\\vlc-trunk\\vlc";
ppsz_argv[0] = "C:\\Cygwin\\home\\damienf\\vlc-trunk\\vlc";
...
...
src/misc/threads.c
View file @
93dacf03
...
@@ -74,8 +74,17 @@ int __vlc_threads_init( vlc_object_t *p_this )
...
@@ -74,8 +74,17 @@ int __vlc_threads_init( vlc_object_t *p_this )
#elif defined( ST_INIT_IN_ST_H )
#elif defined( ST_INIT_IN_ST_H )
#elif defined( UNDER_CE )
#elif defined( UNDER_CE )
#elif defined( WIN32 )
#elif defined( WIN32 )
b_fast_mutex
=
config_GetInt
(
p_this
,
"fast-mutex"
);
if
(
IsDebuggerPresent
()
)
i_win9x_cv
=
config_GetInt
(
p_this
,
"win9x-cv-method"
);
{
/* SignalObjectAndWait() API is problematic under a debugger */
b_fast_mutex
=
VLC_TRUE
;
i_win9x_cv
=
0
;
}
else
{
b_fast_mutex
=
VLC_FALSE
;
i_win9x_cv
=
1
;
}
#elif defined( HAVE_KERNEL_SCHEDULER_H )
#elif defined( HAVE_KERNEL_SCHEDULER_H )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
pthread_mutex_lock
(
&
once_mutex
);
pthread_mutex_lock
(
&
once_mutex
);
...
@@ -508,7 +517,7 @@ int __vlc_cond_destroy( const char * psz_file, int i_line, vlc_cond_t *p_condvar
...
@@ -508,7 +517,7 @@ int __vlc_cond_destroy( const char * psz_file, int i_line, vlc_cond_t *p_condvar
*****************************************************************************/
*****************************************************************************/
int
__vlc_threadvar_create
(
vlc_object_t
*
p_this
,
vlc_threadvar_t
*
p_tls
)
int
__vlc_threadvar_create
(
vlc_object_t
*
p_this
,
vlc_threadvar_t
*
p_tls
)
{
{
int
i_ret
;
int
i_ret
=
-
1
;
(
void
)
p_this
;
(
void
)
p_this
;
#if defined( PTH_INIT_IN_PTH_H )
#if defined( PTH_INIT_IN_PTH_H )
i_ret
=
pth_key_create
(
&
p_tls
->
handle
,
NULL
);
i_ret
=
pth_key_create
(
&
p_tls
->
handle
,
NULL
);
...
...
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