Commit 3e1b347d authored by Benjamin Berg's avatar Benjamin Berg
Browse files

sink: Fix some issues with sink handling

The correct status enum state was not returned and the stream_sink
routine should return a reference to itself.
parent 5c67198b
......@@ -112,7 +112,7 @@ screencast_wfd_p2p_sink_get_property (GObject *object,
break;
case PROP_STATE:
g_value_set_enum (value, SCREENCAST_SINK_STATE_DISCONNECTED);
g_value_set_enum (value, sink->state);
break;
default:
......@@ -347,7 +347,7 @@ screencast_wfd_p2p_sink_sink_start_stream (ScreencastSink *sink, ScreencastPorta
p2p_connected,
sink);
return sink;
return g_object_ref (sink);
}
/******************************************************************
......
Supports Markdown
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