gst_element_query_position and gst_element_query_duration always returns 0
deepthips
deepthips at tataelxsi.co.in
Tue Dec 18 20:44:32 PST 2012
I have a pipeline : souphttpsrc -> id3demux -> ac3parse -> myaudioSink
In this case, gst_element_query_position and gst_element_query_duration
always returns 0.
But the below pipeline works fine:
neonhttpsrc -> id3demux -> mp3parse -> myaudioSink.
Below is the function which fails:
GstFormat fmt = GST_FORMAT_TIME;
gint64 pos;
qint64 dur;
if (gst_element_query_position(GST_ELEMENT(getPipeline()), &fmt, &pos)
&&
gst_element_query_duration(GST_ELEMENT(getPipeline()), &fmt, &dur))
{
}
else
{
printf("GStreamer: Could not query position and duration\n");
}
Any suggestions?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-element-query-position-and-gst-element-query-duration-always-returns-0-tp4657521.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list