mf/session: Use better failure code for rendering node service requests.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-07-12 15:21:20 +03:00 committed by Alexandre Julliard
parent 8b6f276290
commit 64e1e4d62d
1 changed files with 1 additions and 1 deletions

View File

@ -1975,12 +1975,12 @@ static BOOL session_audio_renderer_test_func(IMFMediaSink *sink)
static HRESULT session_get_renderer_node_service(struct media_session *session, static HRESULT session_get_renderer_node_service(struct media_session *session,
p_renderer_node_test_func node_test_func, REFGUID service, REFIID riid, void **obj) p_renderer_node_test_func node_test_func, REFGUID service, REFIID riid, void **obj)
{ {
HRESULT hr = E_NOINTERFACE;
IMFStreamSink *stream_sink; IMFStreamSink *stream_sink;
IMFTopologyNode *node; IMFTopologyNode *node;
IMFCollection *nodes; IMFCollection *nodes;
IMFMediaSink *sink; IMFMediaSink *sink;
unsigned int i = 0; unsigned int i = 0;
HRESULT hr = E_FAIL;
if (session->presentation.current_topology) if (session->presentation.current_topology)
{ {