gst_element_query_position always returning 0
padmapriya
padmapriya.kumarasamy at lnttechservices.com
Mon Mar 16 03:57:49 PDT 2015
Hi,
We have one *custom sink bin plugin* named playsink( contains decodebin !
ffmpegcolorspace ! fbdevsink) .
Eg: Filesrc ! playsink
souphttpsrc ! playsink
There is one sample application which can select any source and sink as
"playsink"
When try to find current-postion property,gst_element_query_position always
returning zero.
As this is sink bin,to get pipeline used GST_ELEMENT_PARENT .
Once get pipeline , gst_element_query_position is used to query duration.
But any time when application asks playbin to get current position it is
always returning 0.
GstElement *pipeline;
GstFormat format = GST_FORMAT_TIME;
gint64 position = 0;
pipeline= *GST_ELEMENT_PARENT*(playsinkbin);
if (!g*st_element_query_positio*n(pipeline, &format,
&position))
{
GST_ERROR_OBJECT(playersinkbin,"Query Stream
Position Failed");
}
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-element-query-position-always-returning-0-tp4671146.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list