diff options
Diffstat (limited to 'gst/modplug')
-rw-r--r-- | gst/modplug/gstmodplug.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/modplug/gstmodplug.cc b/gst/modplug/gstmodplug.cc index 8e8b6efd..c5a2fa82 100644 --- a/gst/modplug/gstmodplug.cc +++ b/gst/modplug/gstmodplug.cc @@ -346,15 +346,19 @@ gst_modplug_src_query (GstPad * pad, GstQueryType type, break; case GST_QUERY_POSITION: switch (*format) { - default: + case GST_FORMAT_TIME: tmp = ((float) (modplug->mSoundFile->GetSongTime () * modplug->mSoundFile->GetCurrentPos ()) / (float) modplug->mSoundFile->GetMaxPosition ()); *value = (gint64) (tmp * GST_SECOND); break; + default: + res = FALSE; + break; } default: + res = FALSE; break; } |