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
9f3dc2d6
Commit
9f3dc2d6
authored
Jul 27, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264: no need to create the variables when closing the module: this is already
done when the module is created.
parent
91e6499b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/codec/x264.c
modules/codec/x264.c
+2
-4
No files found.
modules/codec/x264.c
View file @
9f3dc2d6
...
@@ -1311,7 +1311,7 @@ static int Open ( vlc_object_t *p_this )
...
@@ -1311,7 +1311,7 @@ static int Open ( vlc_object_t *p_this )
}
}
/* We need to initialize pthreadw32 before we open the encoder,
/* We need to initialize pthreadw32 before we open the encoder,
but only onc
c
e for the whole application. Since pthreadw32
but only once for the whole application. Since pthreadw32
doesn't keep a refcount, do it ourselves. */
doesn't keep a refcount, do it ourselves. */
#ifdef PTW32_STATIC_LIB
#ifdef PTW32_STATIC_LIB
vlc_value_t
lock
,
count
;
vlc_value_t
lock
,
count
;
...
@@ -1326,7 +1326,7 @@ static int Open ( vlc_object_t *p_this )
...
@@ -1326,7 +1326,7 @@ static int Open ( vlc_object_t *p_this )
if
(
count
.
i_int
==
0
)
if
(
count
.
i_int
==
0
)
{
{
msg_Dbg
(
p_enc
,
"initializing pthread-win32"
);
msg_Dbg
(
p_enc
,
"initializing pthread-win32"
);
if
(
!
pthread_win32_process_attach_np
()
||
!
pthread_win32_thread_attach_np
()
)
if
(
!
pthread_win32_process_attach_np
()
||
!
pthread_win32_thread_attach_np
()
)
{
{
msg_Warn
(
p_enc
,
"pthread Win32 Initialization failed"
);
msg_Warn
(
p_enc
,
"pthread Win32 Initialization failed"
);
vlc_mutex_unlock
(
lock
.
p_address
);
vlc_mutex_unlock
(
lock
.
p_address
);
...
@@ -1492,11 +1492,9 @@ static void Close( vlc_object_t *p_this )
...
@@ -1492,11 +1492,9 @@ static void Close( vlc_object_t *p_this )
#ifdef PTW32_STATIC_LIB
#ifdef PTW32_STATIC_LIB
vlc_value_t
lock
,
count
;
vlc_value_t
lock
,
count
;
var_Create
(
p_enc
->
p_libvlc
,
"pthread_win32_mutex"
,
VLC_VAR_MUTEX
);
var_Get
(
p_enc
->
p_libvlc
,
"pthread_win32_mutex"
,
&
lock
);
var_Get
(
p_enc
->
p_libvlc
,
"pthread_win32_mutex"
,
&
lock
);
vlc_mutex_lock
(
lock
.
p_address
);
vlc_mutex_lock
(
lock
.
p_address
);
var_Create
(
p_enc
->
p_libvlc
,
"pthread_win32_count"
,
VLC_VAR_INTEGER
);
var_Get
(
p_enc
->
p_libvlc
,
"pthread_win32_count"
,
&
count
);
var_Get
(
p_enc
->
p_libvlc
,
"pthread_win32_count"
,
&
count
);
count
.
i_int
--
;
count
.
i_int
--
;
var_Set
(
p_enc
->
p_libvlc
,
"pthread_win32_count"
,
count
);
var_Set
(
p_enc
->
p_libvlc
,
"pthread_win32_count"
,
count
);
...
...
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