Michael Stefaniuc : dmime: Remove the 'enabled' field from the Tempo track.

Alexandre Julliard julliard at winehq.org
Tue Dec 3 16:13:11 CST 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Dec  3 01:47:46 2019 +0100

dmime: Remove the 'enabled' field from the Tempo track.

The track GetParam/SetParam methods are enabled in the segment and that
information is stored in the segment state not in the track.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dmime/tempotrack.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/dlls/dmime/tempotrack.c b/dlls/dmime/tempotrack.c
index 7aff40dbfd..6038f7ce9f 100644
--- a/dlls/dmime/tempotrack.c
+++ b/dlls/dmime/tempotrack.c
@@ -33,7 +33,6 @@ typedef struct IDirectMusicTempoTrack {
     IDirectMusicTrack8 IDirectMusicTrack8_iface;
     struct dmobject dmobj;  /* IPersistStream only */
     LONG ref;
-    BOOL enabled;
     struct list Items;
 } IDirectMusicTempoTrack;
 
@@ -174,9 +173,6 @@ static HRESULT WINAPI tempo_track_GetParam(IDirectMusicTrack8 *iface, REFGUID rg
   if (FAILED(hr)) {
     return hr;
   }
-  if (FALSE == This->enabled) {
-    return DMUS_E_TYPE_DISABLED;
-  }
 
   if (NULL != pmtNext) *pmtNext = 0;
   prm->mtTime = 0;
@@ -224,9 +220,6 @@ static HRESULT WINAPI tempo_track_IsParamSupported(IDirectMusicTrack8 *iface, RE
     TRACE("param supported\n");
     return S_OK;
   }
-  if (FALSE == This->enabled) {
-    return DMUS_E_TYPE_DISABLED;
-  }
   TRACE("param unsupported\n");
   return DMUS_E_TYPE_UNSUPPORTED;
 }
@@ -405,7 +398,6 @@ HRESULT WINAPI create_dmtempotrack(REFIID lpcGUID, void **ppobj)
     dmobject_init(&track->dmobj, &CLSID_DirectMusicTempoTrack,
                   (IUnknown *)&track->IDirectMusicTrack8_iface);
     track->dmobj.IPersistStream_iface.lpVtbl = &persiststream_vtbl;
-    track->enabled = TRUE;
     list_init(&track->Items);
 
     DMIME_LockModule();




More information about the wine-cvs mailing list