Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camera: Support selecting a camera #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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.

None yet

2 participants