Should close videostore before closing input codecs/streams.
This commit is contained in:
parent
7955a1c9b2
commit
d97dd6cdd9
|
@ -675,6 +675,11 @@ int FfmpegCamera::Close() {
|
|||
}
|
||||
#endif
|
||||
|
||||
if ( videoStore ) {
|
||||
delete videoStore;
|
||||
videoStore = NULL;
|
||||
}
|
||||
|
||||
if ( mVideoCodecContext ) {
|
||||
avcodec_close(mVideoCodecContext);
|
||||
Debug(1,"After codec close");
|
||||
|
@ -700,10 +705,6 @@ int FfmpegCamera::Close() {
|
|||
mFormatContext = NULL;
|
||||
}
|
||||
|
||||
if ( videoStore ) {
|
||||
delete videoStore;
|
||||
videoStore = NULL;
|
||||
}
|
||||
if ( packetqueue ) {
|
||||
delete packetqueue;
|
||||
packetqueue = NULL;
|
||||
|
|
Loading…
Reference in New Issue