From 541daaddfcbb0ad2dc459b76bb65303ad42bcf92 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 15 Dec 2014 19:37:38 +0000 Subject: [PATCH] Fix reload --- app/VideoSubWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/VideoSubWindow.cpp b/app/VideoSubWindow.cpp index 3267573..0ab3eaa 100644 --- a/app/VideoSubWindow.cpp +++ b/app/VideoSubWindow.cpp @@ -132,6 +132,11 @@ Bool VideoSubWindow::loadFile( QString cFilename, Bool bForceDialog ) { m_pCurrStream = new PlaYUVerStream; } + else + { + delete m_pCurrStream; + m_pCurrStream = new PlaYUVerStream; + } m_pCurrStream->getFormat( Width, Height, InputFormat, FrameRate );