Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-08-23 15:01:57 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-23 15:01:57 +0300
commit2ac84d258c336d696decfe6fd1236fbca52007eb (patch)
tree87ae674e97f020079679642509bca8fea4509aa4
parentbbc76e953df45e90511068a26d05e046021f205f (diff)
Free the filters before closing the decoder
Frames currently buffered in the filters might reference the decoder.
-rw-r--r--decoder/LAVVideo/LAVVideo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp
index 1251ce50..7b6d3967 100644
--- a/decoder/LAVVideo/LAVVideo.cpp
+++ b/decoder/LAVVideo/LAVVideo.cpp
@@ -902,10 +902,10 @@ HRESULT CLAVVideo::BreakConnect(PIN_DIRECTION dir)
{
DbgLog((LOG_TRACE, 10, L"::BreakConnect"));
if (dir == PINDIR_INPUT) {
- m_Decoder.Close();
-
if (m_pFilterGraph)
avfilter_graph_free(&m_pFilterGraph);
+
+ m_Decoder.Close();
}
else if (dir == PINDIR_OUTPUT)
{