Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 2050:2ffc6a69fcd1
string API calls -> vtable
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sat, 13 Oct 2007 19:55:04 -0500 |
| parents | 47a7b26717d4 |
| children | b8da6a0b0da2 |
comparison
equal
deleted
inserted
replaced
| 2049:9550e809dc12 | 2050:2ffc6a69fcd1 |
|---|---|
| 645 struct id3_tag *tag = NULL; | 645 struct id3_tag *tag = NULL; |
| 646 | 646 |
| 647 gboolean local_fd = FALSE; | 647 gboolean local_fd = FALSE; |
| 648 | 648 |
| 649 #ifdef DEBUG | 649 #ifdef DEBUG |
| 650 string = str_to_utf8(filename); | 650 string = aud_str_to_utf8(filename); |
| 651 g_message("f: mad: audmad_get_song_tuple: %s", string); | 651 g_message("f: mad: audmad_get_song_tuple: %s", string); |
| 652 g_free(string); | 652 g_free(string); |
| 653 string = NULL; | 653 string = NULL; |
| 654 #endif | 654 #endif |
| 655 | 655 |
| 664 #endif | 664 #endif |
| 665 tmp = aud_vfs_get_metadata(info.infile ? info.infile : fd, "track-name"); | 665 tmp = aud_vfs_get_metadata(info.infile ? info.infile : fd, "track-name"); |
| 666 if(tmp){ | 666 if(tmp){ |
| 667 gchar *scratch; | 667 gchar *scratch; |
| 668 | 668 |
| 669 scratch = str_to_utf8(tmp); | 669 scratch = aud_str_to_utf8(tmp); |
| 670 aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, scratch); | 670 aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, scratch); |
| 671 g_free(tmp); | 671 g_free(tmp); |
| 672 g_free(scratch); | 672 g_free(scratch); |
| 673 | 673 |
| 674 tmp = NULL; | 674 tmp = NULL; |
| 675 } | 675 } |
| 676 tmp = aud_vfs_get_metadata(info.infile ? info.infile : fd, "stream-name"); | 676 tmp = aud_vfs_get_metadata(info.infile ? info.infile : fd, "stream-name"); |
| 677 if(tmp){ | 677 if(tmp){ |
| 678 gchar *scratch; | 678 gchar *scratch; |
| 679 | 679 |
| 680 scratch = str_to_utf8(tmp); | 680 scratch = aud_str_to_utf8(tmp); |
| 681 aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, scratch); | 681 aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, scratch); |
| 682 g_free(tmp); | 682 g_free(tmp); |
| 683 g_free(scratch); | 683 g_free(scratch); |
| 684 | 684 |
| 685 tmp = NULL; | 685 tmp = NULL; |
