comparison src/flac113/plugin.c @ 523:221086196f89 trunk

[svn] - flac 113 plugin: do not try to pick tuple from file if file is not accessible via stdio (and stop crashing when such attempts are done); TODO: pick tags from flac via vfs
author giacomo
date Mon, 22 Jan 2007 13:30:28 -0800
parents 5d05cefbf7ae
children 914c96de3244
comparison
equal deleted inserted replaced
522:2d3fad6a3842 523:221086196f89
396 } 396 }
397 397
398 void FLAC_XMMS__get_song_info(char *filename, char **title, int *length_in_msec) 398 void FLAC_XMMS__get_song_info(char *filename, char **title, int *length_in_msec)
399 { 399 {
400 FLAC__StreamMetadata streaminfo; 400 FLAC__StreamMetadata streaminfo;
401
402 if(0 == filename)
403 filename = "";
404 401
405 /* NOTE vfs is not used here, so only try 402 /* NOTE vfs is not used here, so only try
406 to pick tags if you can do it with flac library stdio */ 403 to pick tags if you can do it with flac library stdio */
407 if ( strncmp(filename,"/",1) ) 404 if ( strncmp(filename,"/",1) )
408 { 405 {