Skip to content

Commit

Permalink
THEORAPLAY_stopDecode() ignores NULL pointers now.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 14, 2011
1 parent b7e21da commit 573d67d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions theoraplay.c
Expand Up @@ -462,6 +462,8 @@ THEORAPLAY_Decoder *THEORAPLAY_startDecode(const char *fname,
void THEORAPLAY_stopDecode(THEORAPLAY_Decoder *decoder)
{
TheoraDecoder *ctx = (TheoraDecoder *) decoder;
if (!ctx)
return;

if (ctx->thread_created)
{
Expand Down

0 comments on commit 573d67d

Please sign in to comment.