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
33ad65cc
Commit
33ad65cc
authored
Sep 23, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mms: Fix uninitialized vlc_cond in mms KeepAlive thread
parent
b069b028
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+3
-0
No files found.
modules/access/mms/mmstu.c
View file @
33ad65cc
...
@@ -207,10 +207,12 @@ int MMSTUOpen( access_t *p_access )
...
@@ -207,10 +207,12 @@ int MMSTUOpen( access_t *p_access )
p_sys
->
p_keepalive
=
malloc
(
sizeof
(
mmstu_keepalive_t
)
);
p_sys
->
p_keepalive
=
malloc
(
sizeof
(
mmstu_keepalive_t
)
);
p_sys
->
p_keepalive
->
p_access
=
p_access
;
p_sys
->
p_keepalive
->
p_access
=
p_access
;
vlc_mutex_init
(
&
p_sys
->
p_keepalive
->
lock
);
vlc_mutex_init
(
&
p_sys
->
p_keepalive
->
lock
);
vlc_cond_init
(
&
p_sys
->
p_keepalive
->
wait
);
p_sys
->
p_keepalive
->
b_paused
=
false
;
p_sys
->
p_keepalive
->
b_paused
=
false
;
if
(
vlc_clone
(
&
p_sys
->
p_keepalive
->
handle
,
KeepAliveThread
,
if
(
vlc_clone
(
&
p_sys
->
p_keepalive
->
handle
,
KeepAliveThread
,
p_sys
->
p_keepalive
,
VLC_THREAD_PRIORITY_LOW
)
)
p_sys
->
p_keepalive
,
VLC_THREAD_PRIORITY_LOW
)
)
{
{
vlc_cond_destroy
(
&
p_sys
->
p_keepalive
->
wait
);
vlc_mutex_destroy
(
&
p_sys
->
p_keepalive
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
p_keepalive
->
lock
);
free
(
p_sys
->
p_keepalive
);
free
(
p_sys
->
p_keepalive
);
p_sys
->
p_keepalive
=
NULL
;
p_sys
->
p_keepalive
=
NULL
;
...
@@ -230,6 +232,7 @@ void MMSTUClose( access_t *p_access )
...
@@ -230,6 +232,7 @@ void MMSTUClose( access_t *p_access )
{
{
vlc_cancel
(
p_sys
->
p_keepalive
->
handle
);
vlc_cancel
(
p_sys
->
p_keepalive
->
handle
);
vlc_join
(
p_sys
->
p_keepalive
->
handle
,
NULL
);
vlc_join
(
p_sys
->
p_keepalive
->
handle
,
NULL
);
vlc_cond_destroy
(
&
p_sys
->
p_keepalive
->
wait
);
vlc_mutex_destroy
(
&
p_sys
->
p_keepalive
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
p_keepalive
->
lock
);
free
(
p_sys
->
p_keepalive
);
free
(
p_sys
->
p_keepalive
);
}
}
...
...
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