Skip to content

Commit

Permalink
fixed release render, see issue Jackarain#19.
Browse files Browse the repository at this point in the history
Signed-off-by: Jack <[email protected]>
  • Loading branch information
Jackarain committed Mar 13, 2013
1 parent a670fa1 commit 285b0eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libav/avplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,14 @@ void* video_render_thrd(void *param)
av_free(video_frame.data[0]);
}
}

/* 释放render. */
if (play->m_vo_ctx)
{
free_video_render(play->m_vo_ctx);
play->m_vo_ctx = NULL;
}

return NULL;
}

Expand Down

0 comments on commit 285b0eb

Please sign in to comment.