QtGStreamer: Segmentation fault when calling query function

bfederau benjamin.federau at basyskom.com
Wed Apr 24 07:37:24 PDT 2013


Hi,

I have implemented the following Qt function

QTime Player::getPosition()
{
    if (m_pipeline) {
        QGst::PositionQueryPtr query =
QGst::PositionQuery::create(QGst::FormatTime);
        m_pipeline->query(query);
        return QGst::ClockTime(query->position()).toTime();
    } else {
        return QTime();
    }
}

When it comes to the m_pipeline->query(query) line the app crashes with a
Segmentation fault.

The backtrace is:
#0  0x00000011 in ?? ()
#1  0xb335b41d in QGlib::RefPointer<QGst::PositionQuery>::clear() () from
/home/meego/mediaplayer/libMediaPlayer.so
#2  0xb335a7c6 in QGlib::RefPointer<QGst::PositionQuery>::~RefPointer() ()
from /home/meego/mediaplayer/libMediaPlayer.so
#3  0xb3359489 in Player::getPosition() () from
/home/meego/mediaplayer/libMediaPlayer.so
.....

And on console I get a:
GLib-GObject-CRITICAL **: g_value_get_int64: assertion `G_VALUE_HOLDS_INT64
(value)' failed


Can somebody give me a hint whats going wrong here?

Cheers
-
Benjamin Federau



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/QtGStreamer-Segmentation-fault-when-calling-query-function-tp4659657.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list