diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-23 15:01:57 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-23 15:01:57 +0300 |
commit | 2ac84d258c336d696decfe6fd1236fbca52007eb (patch) | |
tree | 87ae674e97f020079679642509bca8fea4509aa4 /decoder/LAVVideo | |
parent | bbc76e953df45e90511068a26d05e046021f205f (diff) |
Free the filters before closing the decoder
Frames currently buffered in the filters might reference the decoder.
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 4 |
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) { |