Skip to content

Conversation

matthiasclasen
Copy link
Contributor

Add a variant of xdp_portal_access_camera_finish called
xdp_portal_access_camera_finish_streams that returns
information about what camera was selected, in the same
format that screencast sessions return stream information.

Add a variant of xdp_portal_access_camera_finish called
xdp_portal_access_camera_finish_streams that returns
information about what camera was selected, in the same
format that screencast sessions return stream information.
g_return_val_if_fail (g_task_is_valid (result, portal), FALSE);
g_return_val_if_fail (g_task_get_source_tag (G_TASK (result)) == xdp_portal_access_camera, FALSE);

if (g_task_propagate_boolean (G_TASK (result), error))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be necessary to retrieve streams before calling this? I think this could potentially drop the last reference to this GTask.

{
GVariant *streams;

g_print ("ret: %s\n", g_variant_print (ret, FALSE));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

g_debug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants