playbin2: query rate

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

playbin2: query rate

sundararaj reel
Hi,

I wish to find out the rate of playback. I set them with
gst_element_seek() for fast forward and fast rewind but I am unable to
get playback rate from the pipeline.

I see GST_QUERY_RATE but no gst_element_query_rate() like
gst_element_query_duration(). Is there a standard way of getting the
playback rate ?


Thanks,
Sundararaj
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: playbin2: query rate

Tim-Philipp Müller-2
On Tue, 2011-03-29 at 18:10 +0200, sundararaj reel wrote:

> I wish to find out the rate of playback. I set them with
> gst_element_seek() for fast forward and fast rewind but I am unable to
> get playback rate from the pipeline.
>
> I see GST_QUERY_RATE but no gst_element_query_rate() like
> gst_element_query_duration(). Is there a standard way of getting the
> playback rate ?

Try a GST_QUERY_SEGMENT:

http://library.gnome.org/devel/gstreamer/0.10/gstreamer-GstQuery.html#gst-query-new-segment

Cheers
 -Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel