Nikolay Sivov : mfplay: Remove some dead code (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Sep 16 15:34:31 CDT 2021


Module: wine
Branch: master
Commit: 8eee81b690ff7119a48c06b1412a0d8897d65860
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8eee81b690ff7119a48c06b1412a0d8897d65860

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Sep 16 11:57:48 2021 +0300

mfplay: Remove some dead code (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplay/player.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dlls/mfplay/player.c b/dlls/mfplay/player.c
index 959cf701b99..f7832598ae6 100644
--- a/dlls/mfplay/player.c
+++ b/dlls/mfplay/player.c
@@ -1884,7 +1884,6 @@ static HRESULT WINAPI media_player_session_events_callback_Invoke(IMFAsyncCallba
     IMFMediaEvent *session_event;
     MFP_MEDIAPLAYER_STATE state;
     HRESULT hr, event_status;
-    IMFPMediaItem *item = NULL;
     IMFTopology *topology;
     unsigned int status;
     PROPVARIANT value;
@@ -1964,9 +1963,6 @@ static HRESULT WINAPI media_player_session_events_callback_Invoke(IMFAsyncCallba
             ;
     }
 
-    if (item)
-        IMFPMediaItem_Release(item);
-
     if (event)
     {
         media_player_queue_event(player, event);




More information about the wine-cvs mailing list