[vlc-devel] commit: mms: We can reach MMSTUClose before the keepalive thread was initiated. ( Derk-Jan Hartman )
git version control
git at videolan.org
Tue Sep 23 02:43:26 CEST 2008
vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Tue Sep 23 02:44:19 2008 +0200| [19b7b561d387c451b5aa65a95a05da8b1852cfb2] | committer: Derk-Jan Hartman
mms: We can reach MMSTUClose before the keepalive thread was initiated.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19b7b561d387c451b5aa65a95a05da8b1852cfb2
---
modules/access/mms/mmstu.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index 72eac84..72c817e 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -221,10 +221,13 @@ void MMSTUClose( access_t *p_access )
{
access_sys_t *p_sys = p_access->p_sys;
- vlc_object_kill( p_sys->p_keepalive_thread );
- if( !p_sys->p_keepalive_thread->b_thread_error )
- vlc_thread_join( p_sys->p_keepalive_thread );
- vlc_object_release( p_sys->p_keepalive_thread );
+ if( p_sys->p_keepalive_thread )
+ {
+ vlc_object_kill( p_sys->p_keepalive_thread );
+ if( !p_sys->p_keepalive_thread->b_thread_error )
+ vlc_thread_join( p_sys->p_keepalive_thread );
+ vlc_object_release( p_sys->p_keepalive_thread );
+ }
/* close connection with server */
MMSClose( p_access );
More information about the vlc-devel
mailing list