diff options
-rw-r--r-- | decoder/LAVAudio/LAVAudio.cpp | 6 | ||||
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 6 | ||||
-rw-r--r-- | demuxer/LAVSplitter/LAVSplitter.cpp | 6 |
3 files changed, 6 insertions, 12 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp index 448ad01f..88988e4b 100644 --- a/decoder/LAVAudio/LAVAudio.cpp +++ b/decoder/LAVAudio/LAVAudio.cpp @@ -184,10 +184,8 @@ STDMETHODIMP CLAVAudio::JoinFilterGraph(IFilterGraph * pGraph, LPCWSTR pName) if (pGraph && !m_pTrayIcon && m_settings.TrayIcon) { CreateTrayIcon(); } else if (!pGraph && m_pTrayIcon) { - if (m_pTrayIcon) { - m_pTrayIcon->Destroy(); - m_pTrayIcon = NULL; - } + m_pTrayIcon->Destroy(); + m_pTrayIcon = NULL; } return hr; } diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp index b4519cbe..5a94ee02 100644 --- a/decoder/LAVVideo/LAVVideo.cpp +++ b/decoder/LAVVideo/LAVVideo.cpp @@ -161,10 +161,8 @@ STDMETHODIMP CLAVVideo::JoinFilterGraph(IFilterGraph * pGraph, LPCWSTR pName) if (pGraph && !m_pTrayIcon && m_settings.TrayIcon) { CreateTrayIcon(); } else if (!pGraph && m_pTrayIcon) { - if (m_pTrayIcon) { - m_pTrayIcon->Destroy(); - m_pTrayIcon = NULL; - } + m_pTrayIcon->Destroy(); + m_pTrayIcon = NULL; } return hr; } diff --git a/demuxer/LAVSplitter/LAVSplitter.cpp b/demuxer/LAVSplitter/LAVSplitter.cpp index 1ab0d4ec..5e89b5e9 100644 --- a/demuxer/LAVSplitter/LAVSplitter.cpp +++ b/demuxer/LAVSplitter/LAVSplitter.cpp @@ -140,10 +140,8 @@ STDMETHODIMP CLAVSplitter::JoinFilterGraph(IFilterGraph * pGraph, LPCWSTR pName) if (pGraph && !m_pTrayIcon && m_settings.TrayIcon) { CreateTrayIcon(); } else if (!pGraph && m_pTrayIcon) { - if (m_pTrayIcon) { - m_pTrayIcon->Destroy(); - m_pTrayIcon = NULL; - } + m_pTrayIcon->Destroy(); + m_pTrayIcon = NULL; } return hr; } |