Mercurial > audlegacy-plugins
comparison src/vorbis/vorbis.c @ 1279:2ebffac54865
unescape url encoded filename where real filename is needed.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Tue, 17 Jul 2007 01:14:36 +0900 |
parents | ed2d7787779e |
children | ab66f3ee7a11 |
comparison
equal
deleted
inserted
replaced
1278:d1c66f8ccf73 | 1279:2ebffac54865 |
---|---|
749 static TitleInput * | 749 static TitleInput * |
750 get_tuple_for_vorbisfile(OggVorbis_File * vorbisfile, gchar *filename, gboolean is_stream) | 750 get_tuple_for_vorbisfile(OggVorbis_File * vorbisfile, gchar *filename, gboolean is_stream) |
751 { | 751 { |
752 TitleInput *tuple = NULL; | 752 TitleInput *tuple = NULL; |
753 vorbis_comment *comment; | 753 vorbis_comment *comment; |
754 | 754 gchar *realfn = NULL; |
755 tuple = bmp_title_input_new(); | 755 tuple = bmp_title_input_new(); |
756 | 756 |
757 tuple->file_name = g_path_get_basename(filename); | 757 realfn = g_filename_from_uri(filename, NULL, NULL); |
758 tuple->file_ext = get_extension(filename); | 758 tuple->file_name = g_path_get_basename(realfn ? realfn : filename); |
759 tuple->file_path = g_path_get_dirname(filename); | 759 tuple->file_ext = get_extension(realfn ? realfn : filename); |
760 tuple->file_path = g_path_get_dirname(realfn ? realfn : filename); | |
761 g_free(realfn); realfn = NULL; | |
760 | 762 |
761 /* Retrieve the length */ | 763 /* Retrieve the length */ |
762 if (is_stream == FALSE) | 764 if (is_stream == FALSE) |
763 tuple->length = ov_time_total(vorbisfile, -1) * 1000; | 765 tuple->length = ov_time_total(vorbisfile, -1) * 1000; |
764 else | 766 else |