]> git.sesse.net Git - mlt/commit
sdl/consumer_sdl_preview.c: check for null pointer
authorMikko Rapeli <mikko.rapeli@iki.fi>
Wed, 1 Aug 2012 15:19:12 +0000 (17:19 +0200)
committerMikko Rapeli <mikko.rapeli@iki.fi>
Mon, 6 Aug 2012 16:37:28 +0000 (18:37 +0200)
commitdcb37f6602a1ebf65e9860bf1a344063f139032d
treed42d92b92d80e55b1f3ef6936854eb7eb1748d4b
parent531a4100a514134b8292881ca079e791adced9f4
sdl/consumer_sdl_preview.c: check for null pointer

Fixes Coverity CID 709403: Dereference before null check (REVERSE_INULL)
Dereferencing pointer "this->play". [show details]
290        int eos_threshold = 20 + mlt_properties_get_int( MLT_CONSUMER_PROPERTIES( this->play ), "buffer" );
...
Assigning: "this->active" = "this->play".
424                                        this->active = this->play;
...
Dereferencing "this->play" before a null check.
466        if ( this->play ) mlt_consumer_stop( this->play );
src/modules/sdl/consumer_sdl_preview.c