void stop()
{
- if ( m_started )
+ if ( !m_started )
return;
+ m_started = false;
// Release the wait in getFrame
pthread_mutex_lock( &m_mutex );
while ( mlt_frame frame = (mlt_frame) mlt_deque_pop_back( m_queue ) )
mlt_frame_close( frame );
pthread_mutex_unlock( &m_mutex );
-
- m_started = false;
}
mlt_frame getFrame()