Michael Stefaniuc : quartz: Pass the object instead of the iface to an internal helper.

Alexandre Julliard julliard at winehq.org
Fri Jul 1 14:11:02 CDT 2011


Module: wine
Branch: master
Commit: 2d589407b3cf8fdc2ea41feaf4f98e37217a09f1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2d589407b3cf8fdc2ea41feaf4f98e37217a09f1

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Jun 30 00:32:32 2011 +0200

quartz: Pass the object instead of the iface to an internal helper.

---

 dlls/quartz/filtergraph.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index b1b50cc..20c0d78 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -1903,9 +1903,8 @@ static HRESULT WINAPI SendGetState(IBaseFilter *pFilter, DWORD_PTR data)
 }
 
 
-static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter, DWORD_PTR data)
+static HRESULT SendFilterMessage(IFilterGraphImpl *This, fnFoundFilter FoundFilter, DWORD_PTR data)
 {
-    ICOM_THIS_MULTI(IFilterGraphImpl, IMediaControl_vtbl, iface);
     int i;
     IBaseFilter* pfilter;
     IEnumPins* pEnum;
@@ -1913,7 +1912,8 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter
     IPin* pPin;
     DWORD dummy;
     PIN_DIRECTION dir;
-    TRACE("(%p/%p)->()\n", This, iface);
+
+    TRACE("(%p)->()\n", This);
 
     /* Explorer the graph from source filters to renderers, determine renderers
      * number and run filters from renderers to source filters */
@@ -1985,7 +1985,7 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface) {
     }
     else This->start_time = 0;
 
-    SendFilterMessage(iface, SendRun, (DWORD_PTR)&This->start_time);
+    SendFilterMessage(This, SendRun, (DWORD_PTR)&This->start_time);
     This->state = State_Running;
 out:
     LeaveCriticalSection(&This->cs);
@@ -2005,7 +2005,7 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface) {
     else
         This->pause_time = -1;
 
-    SendFilterMessage(iface, SendPause, 0);
+    SendFilterMessage(This, SendPause, 0);
     This->state = State_Paused;
 out:
     LeaveCriticalSection(&This->cs);
@@ -2019,8 +2019,8 @@ static HRESULT WINAPI MediaControl_Stop(IMediaControl *iface) {
     if (This->state == State_Stopped) return S_OK;
 
     EnterCriticalSection(&This->cs);
-    if (This->state == State_Running) SendFilterMessage(iface, SendPause, 0);
-    SendFilterMessage(iface, SendStop, 0);
+    if (This->state == State_Running) SendFilterMessage(This, SendPause, 0);
+    SendFilterMessage(This, SendStop, 0);
     This->state = State_Stopped;
     LeaveCriticalSection(&This->cs);
     return S_OK;
@@ -2053,7 +2053,7 @@ static HRESULT WINAPI MediaControl_GetState(IMediaControl *iface,
         end = 0;
     }
     if (end)
-        SendFilterMessage(iface, SendGetState, end);
+        SendFilterMessage(This, SendGetState, end);
 
     LeaveCriticalSection(&This->cs);
 




More information about the wine-cvs mailing list