messenger-gtk

Gtk+3 graphical user interfaces for GNUnet Messenger
Log | Files | Refs | Submodules | README | LICENSE

commit 26cdd5581daeed962c4a481749b42dd87c310a45
parent eb9043d874685dfafae5712f97fb2386041ef263
Author: Jacki <jacki@thejackimonster.de>
Date:   Fri, 19 Jan 2024 05:17:13 +0100

Fix reset camera list and camera during selection

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
Msrc/ui/new_contact.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ui/new_contact.c b/src/ui/new_contact.c @@ -106,7 +106,7 @@ handle_camera_combo_box_change(GtkComboBox *widget, if (!handle->pipeline) return; - gst_element_set_state(handle->pipeline, GST_STATE_PAUSED); + gst_element_set_state(handle->pipeline, GST_STATE_NULL); gst_element_set_state(handle->pipeline, GST_STATE_PLAYING); } @@ -349,6 +349,9 @@ _init_camera_pipeline(MESSENGER_Application *app, { if ((app->portal) && ((access) || xdp_portal_is_camera_present(app->portal))) { + app->pw.pending = pw_core_sync(app->pw.core, 0, 0); + + pw_main_loop_run(app->pw.main_loop); pw_map_for_each(&(app->pw.globals), iterate_global, handle); GtkTreeIter iter;