Skip to content

Commit

Permalink
MMALRender: Destroy deinterlace component when method changes
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Apr 3, 2020
1 parent 95bc7f8 commit 04f976f
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -763,7 +763,9 @@ void CMMALRenderer::Run()
interlace_method = VS_INTERLACEMETHOD_MMAL_BOB_HALF;
}

if (interlace_method == VS_INTERLACEMETHOD_NONE && !yuv16)
bool encodingChanged = (last_interlace_method == VS_INTERLACEMETHOD_MMAL_ADVANCED || last_interlace_method == VS_INTERLACEMETHOD_MMAL_ADVANCED_HALF) !=
(interlace_method == VS_INTERLACEMETHOD_MMAL_ADVANCED || interlace_method == VS_INTERLACEMETHOD_MMAL_ADVANCED_HALF);
if ((interlace_method == VS_INTERLACEMETHOD_NONE || encodingChanged) && !yuv16)
{
if (m_deint_input)
DestroyDeinterlace();
Expand Down

0 comments on commit 04f976f

Please sign in to comment.