Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 2201:df520f828dcf
Say goodbye to custom fileinfo dialog in madplug
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Sat, 01 Dec 2007 05:15:43 +0300 |
parents | 2f7eff0bc6eb |
children | f76e846d53d9 |
comparison
equal
deleted
inserted
replaced
2200:d10f13536b94 | 2201:df520f828dcf |
---|---|
31 #include <stdarg.h> | 31 #include <stdarg.h> |
32 #include <fcntl.h> | 32 #include <fcntl.h> |
33 #include <audacious/vfs.h> | 33 #include <audacious/vfs.h> |
34 #include <sys/stat.h> | 34 #include <sys/stat.h> |
35 #include "SFMT.h" | 35 #include "SFMT.h" |
36 #include "tuples.h" | |
36 | 37 |
37 /* | 38 /* |
38 * Global variables | 39 * Global variables |
39 */ | 40 */ |
40 struct audmad_config_t audmad_config; /**< global configuration */ | 41 struct audmad_config_t audmad_config; /**< global configuration */ |
623 GDK_THREADS_LEAVE(); | 624 GDK_THREADS_LEAVE(); |
624 } | 625 } |
625 #endif /* !NOGUI */ | 626 #endif /* !NOGUI */ |
626 } | 627 } |
627 | 628 |
628 extern void audmad_get_file_info(char *filename); | |
629 extern void audmad_configure(); | 629 extern void audmad_configure(); |
630 | 630 |
631 static void __set_and_free(Tuple *tuple, gint nfield, gchar *name, gchar *value) | 631 static void __set_and_free(Tuple *tuple, gint nfield, gchar *name, gchar *value) |
632 { | 632 { |
633 aud_tuple_associate_string(tuple, nfield, name, value); | 633 aud_tuple_associate_string(tuple, nfield, name, value); |
792 } | 792 } |
793 } | 793 } |
794 | 794 |
795 aud_tuple_associate_string(tuple, FIELD_QUALITY, NULL, "lossy"); | 795 aud_tuple_associate_string(tuple, FIELD_QUALITY, NULL, "lossy"); |
796 aud_tuple_associate_string(tuple, FIELD_CODEC, NULL, "MPEG Audio (MP3)"); | 796 aud_tuple_associate_string(tuple, FIELD_CODEC, NULL, "MPEG Audio (MP3)"); |
797 aud_tuple_associate_string(tuple, FIELD_MIMETYPE, NULL, "audio/mpeg"); | |
797 | 798 |
798 if(local_fd) | 799 if(local_fd) |
799 aud_vfs_fclose(fd); | 800 aud_vfs_fclose(fd); |
800 | 801 |
801 #ifdef DEBUG | 802 #ifdef DEBUG |
831 .stop = audmad_stop, | 832 .stop = audmad_stop, |
832 .pause = audmad_pause, | 833 .pause = audmad_pause, |
833 .seek = audmad_seek, | 834 .seek = audmad_seek, |
834 .cleanup = audmad_cleanup, | 835 .cleanup = audmad_cleanup, |
835 .get_song_info = audmad_get_song_info, | 836 .get_song_info = audmad_get_song_info, |
836 .file_info_box = audmad_get_file_info, | |
837 .get_song_tuple = audmad_get_song_tuple, | 837 .get_song_tuple = audmad_get_song_tuple, |
838 .is_our_file_from_vfs = audmad_is_our_fd, | 838 .is_our_file_from_vfs = audmad_is_our_fd, |
839 .vfs_extensions = fmts, | 839 .vfs_extensions = fmts, |
840 .mseek = audmad_mseek, | 840 .mseek = audmad_mseek, |
841 .probe_for_tuple = audmad_probe_for_tuple | 841 .probe_for_tuple = audmad_probe_for_tuple, |
842 .update_song_tuple = audmad_update_song_tuple, | |
842 }; | 843 }; |
843 | 844 |
844 InputPlugin *madplug_iplist[] = { &mad_ip, NULL }; | 845 InputPlugin *madplug_iplist[] = { &mad_ip, NULL }; |
845 | 846 |
846 SIMPLE_INPUT_PLUGIN(madplug, madplug_iplist); | 847 SIMPLE_INPUT_PLUGIN(madplug, madplug_iplist); |