Set stream as NULL until load a file in SubWindowHandle
This commit is contained in:
1 parent
83e808718c
commit
61d6d95e47
2 files changed
+10
-4
No files matched your search
@@ -437,7 +437,7 @@ void plaYUVerApp::playEvent()
|
||||
|
||||
Void plaYUVerApp::updateCurrFrameNum()
|
||||
{
|
||||
if( m_pcCurrentSubWindow )
|
||||
if( m_pcCurrentSubWindow && m_pcCurrentSubWindow->getInputStream() )
|
||||
{
|
||||
Int frame_num = m_pcCurrentSubWindow->getInputStream()->getCurrFrameNum();
|
||||
m_pcFrameSlider->setValue( frame_num );
|
||||
@@ -446,7 +446,7 @@ Void plaYUVerApp::updateCurrFrameNum()
|
||||
}
|
||||
Void plaYUVerApp::updateTotalFrameNum( UInt total_frame_num )
|
||||
{
|
||||
if( m_pcCurrentSubWindow && total_frame_num == 0 )
|
||||
if( m_pcCurrentSubWindow && m_pcCurrentSubWindow->getInputStream() && total_frame_num == 0 )
|
||||
{
|
||||
total_frame_num = m_pcCurrentSubWindow->getInputStream()->getFrameNum();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user