Skip to content
Snippets Groups Projects
Commit 9e2aa612 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

si-adapter: return the correct stream parent when the adapter is nested

parent fe1ac409
No related branches found
No related tags found
No related merge requests found
......@@ -446,7 +446,10 @@ si_adapter_get_stream_properties (WpSiStream * self)
static WpSiEndpoint *
si_adapter_get_stream_parent_endpoint (WpSiStream * self)
{
return WP_SI_ENDPOINT (g_object_ref (self));
WpSessionItem *parent = wp_session_item_get_parent (WP_SESSION_ITEM (self));
if (!parent)
parent = g_object_ref (WP_SESSION_ITEM (self));
return WP_SI_ENDPOINT (parent);
}
static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment