Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 2687:206f0322d221
Remove the obsolete is_our_file() function.
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Fri, 06 Jun 2008 06:41:10 +0300 |
| parents | 45be141b7586 |
| children | 17da667fb14d |
comparison
equal
deleted
inserted
replaced
| 2686:7317dff666f9 | 2687:206f0322d221 |
|---|---|
| 325 } | 325 } |
| 326 } | 326 } |
| 327 | 327 |
| 328 g_message("Rejecting %s (not an MP3 file?)", filename); | 328 g_message("Rejecting %s (not an MP3 file?)", filename); |
| 329 return 0; | 329 return 0; |
| 330 } | |
| 331 | |
| 332 // audacious vfs version | |
| 333 static int | |
| 334 audmad_is_our_file(char *filename) | |
| 335 { | |
| 336 VFSFile *fin = NULL; | |
| 337 gint rtn; | |
| 338 | |
| 339 fin = aud_vfs_fopen(filename, "rb"); | |
| 340 | |
| 341 if (fin == NULL) | |
| 342 return 0; | |
| 343 | |
| 344 rtn = audmad_is_our_fd(filename, fin); | |
| 345 aud_vfs_fclose(fin); | |
| 346 | |
| 347 return rtn; | |
| 348 } | 330 } |
| 349 | 331 |
| 350 static void | 332 static void |
| 351 audmad_stop(InputPlayback *playback) | 333 audmad_stop(InputPlayback *playback) |
| 352 { | 334 { |
| 748 InputPlugin mad_ip = { | 730 InputPlugin mad_ip = { |
| 749 .description = "MPEG Audio Plugin", | 731 .description = "MPEG Audio Plugin", |
| 750 .init = audmad_init, | 732 .init = audmad_init, |
| 751 .about = audmad_about, | 733 .about = audmad_about, |
| 752 .configure = audmad_configure, | 734 .configure = audmad_configure, |
| 753 .is_our_file = audmad_is_our_file, | |
| 754 .play_file = audmad_play_file, | 735 .play_file = audmad_play_file, |
| 755 .stop = audmad_stop, | 736 .stop = audmad_stop, |
| 756 .pause = audmad_pause, | 737 .pause = audmad_pause, |
| 757 .seek = audmad_seek, | 738 .seek = audmad_seek, |
| 758 .cleanup = audmad_cleanup, | 739 .cleanup = audmad_cleanup, |
