Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 1463:3127da6ae5da
fix compile errors if DEBUG is defined.
| author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
|---|---|
| date | Sat, 11 Aug 2007 14:29:58 +0900 |
| parents | 195b5657303e |
| children | 4e612b01f303 |
comparison
equal
deleted
inserted
replaced
| 1462:6edbd225b100 | 1463:3127da6ae5da |
|---|---|
| 685 | 685 |
| 686 tmp = NULL; | 686 tmp = NULL; |
| 687 } | 687 } |
| 688 | 688 |
| 689 #ifdef DEBUG | 689 #ifdef DEBUG |
| 690 g_message("audmad_get_song_tuple: track_name = %s", tuple->track_name); | 690 g_message("audmad_get_song_tuple: track_name = %s", tuple_get_string(tuple, "track-name")); |
| 691 g_message("audmad_get_song_tuple: stream_name = %s", tuple->album_name); | 691 g_message("audmad_get_song_tuple: stream_name = %s", tuple_get_string(tuple, "stream-name")); |
| 692 #endif | 692 #endif |
| 693 realfn = g_filename_from_uri(filename, NULL, NULL); | 693 realfn = g_filename_from_uri(filename, NULL, NULL); |
| 694 __set_and_free(tuple, "file-name", g_path_get_basename(realfn ? realfn : filename)); | 694 __set_and_free(tuple, "file-name", g_path_get_basename(realfn ? realfn : filename)); |
| 695 __set_and_free(tuple, "file-path", g_path_get_dirname(realfn ? realfn : filename)); | 695 __set_and_free(tuple, "file-path", g_path_get_dirname(realfn ? realfn : filename)); |
| 696 tuple_associate_string(tuple, "file-ext", extname(realfn ? realfn : filename)); | 696 tuple_associate_string(tuple, "file-ext", extname(realfn ? realfn : filename)); |
| 774 } | 774 } |
| 775 // genre | 775 // genre |
| 776 __set_and_free(tuple, "genre", input_id3_get_string(tag, ID3_FRAME_GENRE)); | 776 __set_and_free(tuple, "genre", input_id3_get_string(tag, ID3_FRAME_GENRE)); |
| 777 __set_and_free(tuple, "comment", input_id3_get_string(tag, ID3_FRAME_COMMENT)); | 777 __set_and_free(tuple, "comment", input_id3_get_string(tag, ID3_FRAME_COMMENT)); |
| 778 #ifdef DEBUG | 778 #ifdef DEBUG |
| 779 g_message("genre = %s", tuple->genre); | 779 g_message("genre = %s", tuple_get_string(tuple, "genre")); |
| 780 #endif | 780 #endif |
| 781 } | 781 } |
| 782 id3_file_close(id3file); | 782 id3_file_close(id3file); |
| 783 } // id3file | 783 } // id3file |
| 784 else { // no id3tag | 784 else { // no id3tag |
