From c062c99c2a6853902898a96c685a6faf61194666 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 4 Mar 2018 02:35:15 +0100 Subject: [PATCH] DATV demod: tried to fix segfault on avcodec_close() --- plugins/channelrx/demoddatv/datvideorender.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demoddatv/datvideorender.cpp b/plugins/channelrx/demoddatv/datvideorender.cpp index efe47e4dc..c1e9b9525 100644 --- a/plugins/channelrx/demoddatv/datvideorender.cpp +++ b/plugins/channelrx/demoddatv/datvideorender.cpp @@ -561,8 +561,9 @@ bool DATVideoRender::CloseStream(QIODevice *objDevice) //Only once execution m_blnRunning=true; - avformat_close_input(&m_objFormatCtx); - m_objFormatCtx=NULL; + // maybe done in the avcodec_close +// avformat_close_input(&m_objFormatCtx); +// m_objFormatCtx=NULL; if(m_objDecoderCtx) {