[MPlayer-dev-eng] 10l bug in network code?

Arpi arpi at thot.banki.hu
Mon Aug 5 02:31:27 CEST 2002


Hi,

while reviewing teh live.com patch, i've found this in network.c,
seems to be some debug code, forgotten to remove:

                // Get the extension of the file if present
                if( url->file!=NULL ) {
                        for( i=strlen(url->file) ; i>0 ; i-- ) {
                                if( url->file[i]=='.' ) {
                                        extension=(url->file)+i+1;
                                        break;
                                }
                        }
                }
extension=NULL;
                if( extension!=NULL ) {
                  mp_msg(MSGT_NETWORK,MSGL_DBG2,"Extension: %s\n", extension);
                  // Look for the extension in the extensions table
...

note that line 'extension=NULL;'

is it a workaround for something or it was added to test/debug something and
commited by accident?


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list