<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 8:07 PM, bfederau <span dir="ltr"><<a href="mailto:benjamin.federau@basyskom.com" target="_blank">benjamin.federau@basyskom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have implemented the following Qt function<br>
<br>
QTime Player::getPosition()<br>
{<br>
    if (m_pipeline) {<br>
        QGst::PositionQueryPtr query =<br>
QGst::PositionQuery::create(QGst::FormatTime);<br>
        m_pipeline->query(query);<br>
        return QGst::ClockTime(query->position()).toTime();<br>
    } else {<br>
        return QTime();<br>
    }<br>
}<br>
<br>
When it comes to the m_pipeline->query(query) line the app crashes with a<br>
Segmentation fault.<br>
<br>
The backtrace is:<br>
#0  0x00000011 in ?? ()<br>
#1  0xb335b41d in QGlib::RefPointer<QGst::PositionQuery>::clear() () from<br>
/home/meego/mediaplayer/libMediaPlayer.so<br>
#2  0xb335a7c6 in QGlib::RefPointer<QGst::PositionQuery>::~RefPointer() ()<br>
from /home/meego/mediaplayer/libMediaPlayer.so<br>
#3  0xb3359489 in Player::getPosition() () from<br>
/home/meego/mediaplayer/libMediaPlayer.so<br>
.....<br>
<br>
And on console I get a:<br>
GLib-GObject-CRITICAL **: g_value_get_int64: assertion `G_VALUE_HOLDS_INT64<br>
(value)' failed<br>
<br>
<br>
Can somebody give me a hint whats going wrong here?<br></blockquote><div><br></div><div>Can you share a sample program that illustrates this issue. I can try it locally here.<br><br></div><div>-mandeep<br><br></div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers<br>
-<br>
Benjamin Federau<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/QtGStreamer-Segmentation-fault-when-calling-query-function-tp4659657.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/QtGStreamer-Segmentation-fault-when-calling-query-function-tp4659657.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div>