we should be queueing packets regardless of recording state

This commit is contained in:
Isaac Connor 2016-09-16 11:03:16 -04:00
parent fbc0729c83
commit d4645cd94a
1 changed files with 7 additions and 6 deletions

View File

@ -650,18 +650,19 @@ Debug(5, "After av_read_frame (%d)", ret );
return 0;
}
} else {
// Not recording
if ( videoStore ) {
Info("Deleting videoStore instance");
delete videoStore;
videoStore = NULL;
}
} // end if
//Buffer video packets
if ( packet->flags & AV_PKT_FLAG_KEY ) {
packetqueue.clearQueue();
}
packetqueue.queuePacket(packet);
} // end if
if ( packet->stream_index == mVideoStreamId ) {
ret = zm_avcodec_decode_video( mVideoCodecContext, mRawFrame, &frameComplete, packet );