Skip to content
Snippets Groups Projects
Commit 50d77d2c authored by Vivien Didelot's avatar Vivien Didelot
Browse files

gnome: add a "None" video source

This commit adds a "None" video input source, which results in
streaming the client logo.

Refs: #45417
parent a902581d
No related branches found
No related tags found
No related merge requests found
...@@ -694,7 +694,10 @@ call_switch_video_input(G_GNUC_UNUSED GtkWidget *widget, gchar *device) ...@@ -694,7 +694,10 @@ call_switch_video_input(G_GNUC_UNUSED GtkWidget *widget, gchar *device)
gboolean switched; gboolean switched;
gchar *resource; gchar *resource;
if (g_strcmp0(device, "Screen") == 0) { if (g_strcmp0(device, "None") == 0) {
resource = g_strconcat("file://", ICONS_DIR "/sflphone.png", NULL);
switched = dbus_switch_video_input(resource);
} else if (g_strcmp0(device, "Screen") == 0) {
resource = sflphone_get_display(); resource = sflphone_get_display();
switched = dbus_switch_video_input(resource); switched = dbus_switch_video_input(resource);
} else { } else {
...@@ -1473,6 +1476,8 @@ show_popup_menu(GtkWidget *my_widget, GdkEventButton *event, SFLPhoneClient *cli ...@@ -1473,6 +1476,8 @@ show_popup_menu(GtkWidget *my_widget, GdkEventButton *event, SFLPhoneClient *cli
} }
/* Add the special X11 device */ /* Add the special X11 device */
append_video_input_to_submenu(video_menu, "Screen"); append_video_input_to_submenu(video_menu, "Screen");
/* Add a None entry, which will display the client logo */
append_video_input_to_submenu(video_menu, "None");
} }
#endif #endif
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment