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@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2019-12-03 01:47:46 +01:00 committed by Alexandre Julliard
parent bba33e5391
commit 741ec8ca75
1 changed files with 0 additions and 8 deletions

View File

@ -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();