Skip to content

Commit

Permalink
Update libav/src/avplay.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Apr 16, 2012
1 parent 744acc8 commit 04cb50d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libav/src/avplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ audio_render* alloc_audio_render()

void free_audio_render(audio_render *render)
{
render->destory_audio(render->ctx);
if (render->ctx)
render->destory_audio(render->ctx);
free(render);
}

Expand All @@ -474,7 +475,8 @@ video_render* alloc_video_render(void *user_data)

void free_video_render(video_render *render)
{
render->destory_video(render->ctx);
if (render->ctx)
render->destory_video(render->ctx);
free(render);
}

Expand Down

0 comments on commit 04cb50d

Please sign in to comment.