Commit aa92fc31 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Releasing ClipWorkflow's media players

parent 6d9c3d7b
...@@ -237,6 +237,7 @@ void ClipWorkflow::stop() ...@@ -237,6 +237,7 @@ void ClipWorkflow::stop()
if ( m_mediaPlayer ) if ( m_mediaPlayer )
{ {
m_mediaPlayer->stop(); m_mediaPlayer->stop();
Pool<LibVLCpp::MediaPlayer>::getInstance()->release( m_mediaPlayer );
disconnect( m_mediaPlayer, SIGNAL( endReached() ), this, SLOT( clipEndReached() ) ); disconnect( m_mediaPlayer, SIGNAL( endReached() ), this, SLOT( clipEndReached() ) );
m_mediaPlayer = NULL; m_mediaPlayer = NULL;
setState( Stopped ); setState( Stopped );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment