avformat/libopenmpt: Query duration and metadata after selecting subsong
authorJörn Heusipp <osmanx@problemloesungsmaschine.de>
Sun, 17 Sep 2017 13:35:50 +0000 (15:35 +0200)
committerJosh de Kock <josh@itanimul.li>
Sun, 24 Sep 2017 14:54:38 +0000 (15:54 +0100)
commit3d2da6d585509daddcd65f206b1a262c9c78cbce
tree4306fa3b158d13f3d90b1ebd2ad155448c6733a5
parent16adbfe60c35d42f440ec7ed4c320282333602ba
avformat/libopenmpt: Query duration and metadata after selecting subsong

Duration depends on the selected subsong and thus must be queried after
selecting the subsong. There is no compelling reason to query other
metadata earlier either.

Tested with libopenmpt version: 0.2.8760-beta27
Libopenmpt configure options: --without-ogg --without-vorbis
--without-vorbisfile --without-portaudio --without-portaudiocpp
--without-mpg123 --without-pulseaudio --without-sndfile --without-flac

Signed-off-by: Jörn Heusipp <osmanx@problemloesungsmaschine.de>
Signed-off-by: Josh de Kock <josh@itanimul.li>
libavformat/libopenmpt.c