Commit ee8e8d64 authored by Ilkka Ollakka's avatar Ilkka Ollakka

transcode: fix picture release code

There was a bug that if you had threads but no fps it would release
p_pic that is in fifo for encoder and stuff happened. I introduced this
but in that lipsync change.
parent 2416d7d1
......@@ -772,9 +772,9 @@ static void OutputFrame( sout_stream_sys_t *p_sys, picture_t *p_pic, sout_stream
( date_Get( &id->interpolated_pts ) );
}
if( p_sys->i_threads && p_sys->b_master_sync && p_pic2 )
if( p_sys->i_threads && p_pic2 )
picture_Release( p_pic2 );
else
else if ( p_sys->i_threads == 0 )
picture_Release( p_pic );
}
......
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