Go on to the next track properly

This commit is contained in:
David Sansome 2010-04-06 22:01:51 +00:00
parent ac887cf468
commit b154f2bd4e
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ GstEngine::event_cb( GstPad*, GstEvent* event, gpointer /*arg*/) //static
{
case GST_EVENT_EOS:
qDebug() << "EOS reached";
QTimer::singleShot( 0, instance(), SLOT( endOfStreamReached() ) );
QMetaObject::invokeMethod(instance(), "endOfStreamReached",
Qt::QueuedConnection);
break;
case GST_EVENT_TAG:
{