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 Jul 10, 2019
1 parent 2b1a533 commit 0ff5eb5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 0ff5eb5

Please sign in to comment.