diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-02-07 18:25:51 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-02-07 18:25:51 +0400 |
commit | 5b82af65224b76e982832fa85a6b27a64d23e423 (patch) | |
tree | f609f027fe6cb30761f624db63fb420dd3ed4c21 /decoder | |
parent | 32a1e5537f384b04c700880d1dbc468dd9e9f4e8 (diff) |
Remove double check
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/LAVAudio/LAVAudio.cpp | 6 | ||||
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 6 |
2 files changed, 4 insertions, 8 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; } |