[MPlayer-cvslog] r35359 - trunk/stream/asf_streaming.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Nov 6 18:05:08 CET 2012


On Tue, Nov 06, 2012 at 04:53:41PM +0100, upsuper wrote:
> Author: upsuper
> Date: Tue Nov  6 16:53:41 2012
> New Revision: 35359
> 
> Log:
> Comment out unused code
> 
> Modified:
>    trunk/stream/asf_streaming.c
> 
> Modified: trunk/stream/asf_streaming.c
> ==============================================================================
> --- trunk/stream/asf_streaming.c	Tue Nov  6 07:13:12 2012	(r35358)
> +++ trunk/stream/asf_streaming.c	Tue Nov  6 16:53:41 2012	(r35359)
> @@ -78,6 +78,7 @@ static int asf_streaming_start( stream_t
>      int port = stream->streaming_ctrl->url->port;
>  
>      // Is protocol mms or mmsu?
> +    /*
>      if (!strcasecmp(proto, "mmsu") || !strcasecmp(proto, "mms"))
>      {
>  		mp_msg(MSGT_NETWORK,MSGL_V,"Trying ASF/UDP...\n");
> @@ -86,6 +87,7 @@ static int asf_streaming_start( stream_t
>  		mp_msg(MSGT_NETWORK,MSGL_V,"  ===> ASF/UDP failed\n");
>  		if( fd==-2 ) return -1;
>  	}
> +    */

While mostly useless, that code sure isn't unused.
Before with -v it would at least print
Trying ASF/UDP...
  ===> ASF/UDP failed
when using mmsu://, now that just fails silently without any
hint of what went wrong.
Not to mention that leaving around commented-out code is not
particularly useful anyway, if there's not point in removing it
completely might make sense, or otherwise if it is really
useful to keep around for some reason, putting it under
"if (0)" make sure it will at least kept compilable.


More information about the MPlayer-cvslog mailing list