Commit 741ec8ca authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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: 's avatarMichael Stefaniuc <mstefani@winehq.org> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent bba33e53
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment