Changeset abcff2bd9243c8064ab289bf9138a4cb68e55e01

Show
Ignore:
Timestamp:
18/08/08 01:04:15 (4 months ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1219014255 +0200
git-parent:

[48c7e2ce1920c0c4b59b967397c256c098e06a54]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1219014255 +0200
Message:

taglib: fix variable scoping

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/meta_engine/taglib.cpp

    r1728429 rabcff2b  
    246246    demux_meta_t    *p_demux_meta = (demux_meta_t*)p_demux->p_private; 
    247247    vlc_meta_t      *p_meta; 
     248    TagLib::FileRef  f; 
    248249 
    249250    TAB_INIT( p_demux_meta->i_attachments, p_demux_meta->attachments ); 
     
    255256        wchar_t wpath[MAX_PATH + 1]; 
    256257        if( !MultiByteToWideChar( CP_UTF8, 0, p_demux->psz_path, -1, wpath, MAX_PATH) ) 
    257         { 
    258             errno = ENOENT; 
    259258            return VLC_EGENERIC; 
    260         } 
     259 
    261260        wpath[MAX_PATH] = L'0'; 
    262         FileRef f( wpath ); 
     261        f = FileRef( wpath ); 
    263262    } 
    264263    else return VLC_EGENERIC; 
     
    267266 
    268267    if( local_name == NULL ) 
    269     { 
    270268        return VLC_EGENERIC; 
    271     } 
    272     FileRef f( local_name ); 
     269 
     270    f = FileRef( local_name ); 
    273271    LocaleFree( local_name ); 
    274272#endif