Fixes: Fixed incorrect tracks number calculation with phonon/gst RevBy: Andrew den Exter
Fixes: Fixed incorrect tracks number calculation with phonon/gst RevBy: Andrew den Exter

Details:
gst_element_query_duration(element,format,duration) doesn't always
return duration in format being asked for (tracks in this case),
it can also return duration in format it can (Time) and modify
format parameter, so check the format is still the same
as requested is necessary. This bug prevented Phonon to emit finished()
signal with some files, since it expected next tracks to exist.

KDE/phonon-xine,KDE/phonon-waveout,KDE/phonon-gstreamer,KDE/phonon-directshow,KDE/phonon-xine,KDE/phonon-mmf,shadeslayer/phonon-gstreamer,KDE/phonon-gstreamer,KDE/phonon-quicktime,KDE/phonon-directshow,shadeslayer/phonon-gstreamer,KDE/phonon-xine,shadeslayer/phonon-gstreamer