ntadej / tano

Tano - an open IP TV player
http://tano.si/tano-player/
GNU General Public License v3.0
52 stars 23 forks source link

Problem creating VlcInstance in debug mode (Windows) #56

Closed Starbuck2010 closed 9 years ago

Starbuck2010 commented 9 years ago

Very simple code to test my config (Qt5.3.2, msvc2013 x64):

It happens in qlist.h: template Q_INLINE_TEMPLATE void QList::node_destruct(Node _from, Node to) { if (QTypeInfo::isLarge || QTypeInfo::isStatic) while(from != to) --to, delete reinterpretcast<T>(to->v); else if (QTypeInfo::isComplex) -> while (from != to) --to, reinterpret_cast<T>(to)->~T(); }

My code:

include "TestWindow.h"

include

TestWindow::TestWindow(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags) { m_vlcInstance = new VlcInstance(VlcCommon::args(), this); m_vlcPlayer = new VlcMediaPlayer(m_vlcInstance); m_vlcWidgetVideo = new VlcWidgetVideo(m_vlcPlayer, this); m_vlcPlayer->setVideoWidget(m_vlcWidgetVideo);

setCentralWidget(m_vlcWidgetVideo);

QTimer::singleShot(0, this, SLOT(start()));

}

void TestWindow::closeEvent(QCloseEvent *ev) { delete m_vlcPlayer; delete m_vlcMedia; delete m_vlcInstance;

ev->accept();

}

void TestWindow::start() { QString file = QFileDialog::getOpenFileName(this, tr("Open file"), QDir::homePath(), tr("Multimedia files(*)"));

if (file.isEmpty())
    return;

m_vlcMedia = new VlcMedia(file, true, m_vlcInstance);

m_vlcPlayer->open(m_vlcMedia);

}

ntadej commented 9 years ago

This seems to be vlc-qt related issue. Can you post it there?