Hi all,
i'm still quite new with GStreamer and i'm working on my first project with it.
I'm using QtGStreamer bindings so i have implemented a simple function to query the current pipeline about position:<br>

<pre>
            QTime MyPipeline::queryPosition() {
                QGst::PositionQueryPtr query = QGst::PositionQuery::create(QGst::FormatTime);
                pipeline->query(query);
                return QGst::ClockTime(query->position()).toTime();
            }
</pre>

Now after entering the playing state i set up a QTimer to run each second the following:
<pre>
                void debugPosition() {
                        qDebug() << this << " ### Position: " << queryPosition()
                }
</pre>

Up to here it works as expected since i can retrieve for each Pipeline the current playback position and print it. 

The same function is also sometimes called inside the callback 'formatLocation' of the sink element 'muxsplitsink' in one of the pipelines since the position is needed to be acquired in that moment, but for some reasons from there the value 99% is reported as QTime("23:34:33.709").

I remember something about querying the position from certain contexts can fail but i cannot find this in the manual, can someone help?

Thanks


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/QtGtstreamer-query-position-returns-a-wrong-value-tp4678954.html">QtGtstreamer: query position returns a wrong value</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>