diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2003-05-24 10:41:58 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2003-05-24 10:41:58 +0000 |
commit | ed75cd44e465ca78689652fa8a9c6e9855612e8a (patch) | |
tree | cd7cd1b9dea4aa0f2dc0c5d88d9f53a483f987dd /gst/modplug | |
parent | fe40d42ec36a64aac6212f4ef2954572800c12f2 (diff) | |
download | gst-plugins-bad-ed75cd44e465ca78689652fa8a9c6e9855612e8a.tar.gz gst-plugins-bad-ed75cd44e465ca78689652fa8a9c6e9855612e8a.tar.bz2 gst-plugins-bad-ed75cd44e465ca78689652fa8a9c6e9855612e8a.zip |
UNITS -> DEFAULT
Original commit message from CVS:
UNITS -> DEFAULT
Diffstat (limited to 'gst/modplug')
-rw-r--r-- | gst/modplug/gstmodplug.cc | 6 |
1 files changed, 1 insertions, 5 deletions
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); |