ext/alsa/gstalsa.c: use gst_element_get_time to get correct time

Original commit message from CVS:
2004-01-28  Benjamin Otte  <in7y118@public.uni-hamburg.de>

* ext/alsa/gstalsa.c: (gst_alsa_query_func):
use gst_element_get_time to get correct time
This commit is contained in:
Benjamin Otte 2004-01-28 05:21:23 +00:00
parent 2614bc1a48
commit ead37dc249
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-01-28 Benjamin Otte <in7y118@public.uni-hamburg.de>
* ext/alsa/gstalsa.c: (gst_alsa_query_func):
use gst_element_get_time to get correct time
2004-01-28 Julien MOUTTE <julien@moutte.net>
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xerror),

View file

@ -1235,7 +1235,7 @@ gst_alsa_query_func (GstElement *element, GstQueryType type, GstFormat *format,
break;
}
case GST_QUERY_POSITION:
res = gst_alsa_convert (this, GST_FORMAT_DEFAULT, this->transmitted, format, value);
res = gst_alsa_convert (this, GST_FORMAT_TIME, gst_element_get_time (GST_ELEMENT (this)), format, value);
break;
default:
break;