]> git.sesse.net Git - mlt/blobdiff - src/modules/dv/producer_libdv.c
Merge branch 'master' of git://github.com/mltframework/mlt.git
[mlt] / src / modules / dv / producer_libdv.c
index f3f1ce4b72d5717071f2b397350ab2585a4a8627..59e8c5f7c3a4fc23bbbe219bc02af1bc17646b06 100644 (file)
@@ -537,7 +537,8 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
        }
 
        // Update timecode on the frame we're creating
-       mlt_frame_set_position( *frame, mlt_producer_position( producer ) );
+       if ( *frame != NULL )
+               mlt_frame_set_position( *frame, mlt_producer_position( producer ) );
 
        // Calculate the next timecode
        mlt_producer_prepare_next( producer );