Commit 222e2acb authored by Laurent Aimar's avatar Laurent Aimar

Do not try other protocols when ask to quit (mms).

parent c0de0770
...@@ -138,6 +138,9 @@ static int Open( vlc_object_t *p_this ) ...@@ -138,6 +138,9 @@ 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 */ /* try mmsh if mmstu failed */
return MMSHOpen ( p_access ); return MMSHOpen ( p_access );
} }
......
...@@ -155,6 +155,7 @@ int MMSTUOpen( access_t *p_access ) ...@@ -155,6 +155,7 @@ int MMSTUOpen( access_t *p_access )
{ /* first try with TCP and then UDP*/ { /* first try with TCP and then UDP*/
if( ( i_status = MMSOpen( p_access, &p_sys->url, MMS_PROTO_TCP ) ) ) if( ( i_status = MMSOpen( p_access, &p_sys->url, MMS_PROTO_TCP ) ) )
{ {
if( !p_access->b_die )
i_status = MMSOpen( p_access, &p_sys->url, MMS_PROTO_UDP ); i_status = MMSOpen( p_access, &p_sys->url, MMS_PROTO_UDP );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment