Commit 312e0d51 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

mfplay: Prevent usage of uninitialized pointer in error case (Coverity).

parent b67d66f5
...@@ -1378,7 +1378,6 @@ static HRESULT media_item_create_sink_node(IUnknown *sink, IMFTopologyNode **nod ...@@ -1378,7 +1378,6 @@ static HRESULT media_item_create_sink_node(IUnknown *sink, IMFTopologyNode **nod
static HRESULT media_item_create_topology(struct media_player *player, struct media_item *item, IMFTopology **out) static HRESULT media_item_create_topology(struct media_player *player, struct media_item *item, IMFTopology **out)
{ {
IMFTopologyNode *src_node, *sink_node;
BOOL selected, video_added = FALSE; BOOL selected, video_added = FALSE;
IMFStreamDescriptor *sd; IMFStreamDescriptor *sd;
IMFTopology *topology; IMFTopology *topology;
...@@ -1421,6 +1420,8 @@ static HRESULT media_item_create_topology(struct media_player *player, struct me ...@@ -1421,6 +1420,8 @@ static HRESULT media_item_create_topology(struct media_player *player, struct me
if (sink) if (sink)
{ {
IMFTopologyNode *src_node = NULL, *sink_node = NULL;
hr = media_item_create_source_node(item, sd, &src_node); hr = media_item_create_source_node(item, sd, &src_node);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
hr = media_item_create_sink_node(sink, &sink_node); hr = media_item_create_sink_node(sink, &sink_node);
......
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