]> git.sesse.net Git - vlc/commitdiff
Do not try other protocols when ask to quit (mms).
authorLaurent Aimar <fenrir@videolan.org>
Mon, 24 Nov 2008 18:09:15 +0000 (19:09 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 24 Nov 2008 18:13:09 +0000 (19:13 +0100)
modules/access/mms/mms.c
modules/access/mms/mmstu.c

index 04763ff2a4050238cf8e2aa92e360260cf1f5dc4..efc2be152372a38544aa0e68e1af8729c03672dd 100644 (file)
@@ -136,8 +136,11 @@ static int Open( vlc_object_t *p_this )
         }
     }
 
-    if(  MMSTUOpen ( p_access ) )
+    if( MMSTUOpen ( p_access ) )
     {
+        if( p_access->b_die )
+            return VLC_EGENERIC;
+
         /* try mmsh if mmstu failed */
         return  MMSHOpen ( p_access );
     }
index d7f858679de8ff73e6920e7accd877a034e90151..6961545785af0265f7b942491368cf5c49366df1 100644 (file)
@@ -155,7 +155,8 @@ int  MMSTUOpen( access_t *p_access )
     {   /* first try with TCP and then UDP*/
         if( ( i_status = MMSOpen( p_access, &p_sys->url, MMS_PROTO_TCP ) ) )
         {
-            i_status = MMSOpen( p_access, &p_sys->url, MMS_PROTO_UDP );
+            if( !p_access->b_die )
+                i_status = MMSOpen( p_access, &p_sys->url, MMS_PROTO_UDP );
         }
     }
     else