diff options
author | 2013-07-07 23:07:50 +0200 | |
---|---|---|
committer | 2013-07-07 23:08:02 +0200 | |
commit | 3e71fdc649f2d181d32187b00032895eab58bd3b (patch) | |
tree | 5e5df11b60259eef1f979cfae51871f9fe4c5958 /plugins/wma/wma_plugin.c | |
parent | 1282b9029aba4b2a903c7dfe35b154dd262b7aeb (diff) |
wma: experimental embedded cue support; reload metadata support
Diffstat (limited to 'plugins/wma/wma_plugin.c')
-rw-r--r-- | plugins/wma/wma_plugin.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |