Nikolay Sivov : mf: Use more descriptive name for one of the impl_from_* helpers.

Alexandre Julliard julliard at winehq.org
Thu Feb 20 18:26:12 CST 2020


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Feb 20 16:41:21 2020 +0300

mf: Use more descriptive name for one of the impl_from_* helpers.

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

---

 dlls/mf/session.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/mf/session.c b/dlls/mf/session.c
index b80499477c..6b5d590a25 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -278,7 +278,7 @@ static struct clock_timer *impl_clock_timer_from_IUnknown(IUnknown *iface)
     return CONTAINING_RECORD(iface, struct clock_timer, IUnknown_iface);
 }
 
-static struct sink_notification *impl_from_IUnknown(IUnknown *iface)
+static struct sink_notification *impl_sink_notification_from_IUnknown(IUnknown *iface)
 {
     return CONTAINING_RECORD(iface, struct sink_notification, IUnknown_iface);
 }
@@ -1918,7 +1918,7 @@ static HRESULT WINAPI sink_notification_QueryInterface(IUnknown *iface, REFIID r
 
 static ULONG WINAPI sink_notification_AddRef(IUnknown *iface)
 {
-    struct sink_notification *notification = impl_from_IUnknown(iface);
+    struct sink_notification *notification = impl_sink_notification_from_IUnknown(iface);
     ULONG refcount = InterlockedIncrement(&notification->refcount);
 
     TRACE("%p, refcount %u.\n", iface, refcount);
@@ -1928,7 +1928,7 @@ static ULONG WINAPI sink_notification_AddRef(IUnknown *iface)
 
 static ULONG WINAPI sink_notification_Release(IUnknown *iface)
 {
-    struct sink_notification *notification = impl_from_IUnknown(iface);
+    struct sink_notification *notification = impl_sink_notification_from_IUnknown(iface);
     ULONG refcount = InterlockedDecrement(&notification->refcount);
 
     TRACE("%p, refcount %u.\n", iface, refcount);
@@ -2496,7 +2496,7 @@ static HRESULT WINAPI present_clock_sink_callback_Invoke(IMFAsyncCallback *iface
     if (FAILED(hr = IMFAsyncResult_GetObject(result, &object)))
         return hr;
 
-    data = impl_from_IUnknown(object);
+    data = impl_sink_notification_from_IUnknown(object);
 
     clock_call_state_change(data->system_time, data->param, data->notification, data->sink);
 




More information about the wine-cvs mailing list