From ed75cd44e465ca78689652fa8a9c6e9855612e8a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 24 May 2003 10:41:58 +0000 Subject: UNITS -> DEFAULT Original commit message from CVS: UNITS -> DEFAULT --- gst/modplug/gstmodplug.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gst') diff --git a/gst/modplug/gstmodplug.cc b/gst/modplug/gstmodplug.cc index 948de81b..8085eb22 100644 --- a/gst/modplug/gstmodplug.cc +++ b/gst/modplug/gstmodplug.cc @@ -402,7 +402,7 @@ gst_modplug_get_formats (GstPad *pad) { static const GstFormat src_formats[] = { /* GST_FORMAT_BYTES, - GST_FORMAT_UNITS,*/ + GST_FORMAT_DEFAULT,*/ GST_FORMAT_TIME, (GstFormat)0 }; @@ -441,8 +441,6 @@ gst_modplug_src_query (GstPad *pad, GstQueryType type, switch (type) { case GST_QUERY_TOTAL: switch (*format) { - case GST_FORMAT_DEFAULT: - *format = GST_FORMAT_TIME; case GST_FORMAT_TIME: *value=(gint64)modplug->mSoundFile->GetSongTime() * GST_SECOND; break; @@ -453,8 +451,6 @@ gst_modplug_src_query (GstPad *pad, GstQueryType type, break; case GST_QUERY_POSITION: switch (*format) { - case GST_FORMAT_DEFAULT: - *format = GST_FORMAT_TIME; default: tmp = ((float)( modplug->mSoundFile->GetSongTime() * modplug->mSoundFile->GetCurrentPos() ) / (float)modplug->mSoundFile->GetMaxPosition() ); *value=(gint64)(tmp * GST_SECOND); -- cgit v1.2.1