From 3e71fdc649f2d181d32187b00032895eab58bd3b Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 7 Jul 2013 23:07:50 +0200 Subject: wma: experimental embedded cue support; reload metadata support --- plugins/wma/wma_plugin.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/wma/wma_plugin.c') diff --git a/plugins/wma/wma_plugin.c b/plugins/wma/wma_plugin.c index c41f113b..f997d0a4 100644 --- a/plugins/wma/wma_plugin.c +++ b/plugins/wma/wma_plugin.c @@ -357,6 +357,15 @@ wmaplug_seek (DB_fileinfo_t *_info, float t) { static int wmaplug_read_metadata (DB_playItem_t *it) { + deadbeef->pl_delete_all_meta (it); + DB_FILE *fp = deadbeef->fopen (deadbeef->pl_find_meta (it, ":URI")); + if (!fp) { + return -1; + } + asf_waveformatex_t wfx; + int64_t first_frame_offset; + get_asf_metadata (fp, it, &wfx, &first_frame_offset); + deadbeef->fclose (fp); return 0; } -- cgit v1.2.3