Changeset 324


Ignore:
Timestamp:
05/12/07 23:45:16 (18 years ago)
Author:
r2d
Message:

file is closed after function call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • winamp-musepack/trunk/in_mpc.cpp

    r322 r324  
    4848
    4949mpc_player * player;
    50 mpc_player * player_ext;
    5150
    5251// module definition.
     
    230229{
    231230        if ( !fn || (fn && !fn[0]) ) return 0;
    232 
    233         if (player_ext == 0)
    234                 player_ext = new mpc_player(fn, 0);
    235         else
    236                 player_ext->openFile(fn);
    237 
    238231        dest[0] = 0;
    239232
    240         return player_ext->getExtendedFileInfo(data, dest, destlen);
    241 }
    242 
    243 }
     233        mpc_player info_play(fn, 0);
     234        return info_play.getExtendedFileInfo(data, dest, destlen);
     235}
     236
     237}
Note: See TracChangeset for help on using the changeset viewer.