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
|
#endif
|
||||||
|
|
||||||
|
if ( videoStore ) {
|
||||||
|
delete videoStore;
|
||||||
|
videoStore = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if ( mVideoCodecContext ) {
|
if ( mVideoCodecContext ) {
|
||||||
avcodec_close(mVideoCodecContext);
|
avcodec_close(mVideoCodecContext);
|
||||||
Debug(1,"After codec close");
|
Debug(1,"After codec close");
|
||||||
|
@ -700,10 +705,6 @@ int FfmpegCamera::Close() {
|
||||||
mFormatContext = NULL;
|
mFormatContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( videoStore ) {
|
|
||||||
delete videoStore;
|
|
||||||
videoStore = NULL;
|
|
||||||
}
|
|
||||||
if ( packetqueue ) {
|
if ( packetqueue ) {
|
||||||
delete packetqueue;
|
delete packetqueue;
|
||||||
packetqueue = NULL;
|
packetqueue = NULL;
|
||||||
|
|
Loading…
Reference in New Issue