Skip to content
Snippets Groups Projects
Commit e69dbf02 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

video_widget: switch video input on current remote id

Change-Id: Ic36850b211748117e510e13ce2293a03117711f5
parent d2a279eb
Branches
Tags
No related merge requests found
...@@ -417,7 +417,7 @@ switch_video_input(GtkWidget *widget, GtkWidget *parent) ...@@ -417,7 +417,7 @@ switch_video_input(GtkWidget *widget, GtkWidget *parent)
g_warning("switch_video_input couldn't find device: %s", label); g_warning("switch_video_input couldn't find device: %s", label);
return; return;
} }
priv->avModel_->switchInputTo(device_id); priv->avModel_->switchInputTo(device_id, priv->remote->v_renderer->getId());
} }
} }
...@@ -452,7 +452,7 @@ switch_video_input_screen_area(G_GNUC_UNUSED GtkWidget *item, GtkWidget *parent) ...@@ -452,7 +452,7 @@ switch_video_input_screen_area(G_GNUC_UNUSED GtkWidget *item, GtkWidget *parent)
} }
if (priv->avModel_) if (priv->avModel_)
priv->avModel_->setDisplay(display, x, y, width, height); priv->avModel_->setDisplay(display, x, y, width, height, priv->remote->v_renderer->getId());
} }
static void static void
...@@ -480,7 +480,7 @@ switch_video_input_monitor(G_GNUC_UNUSED GtkWidget *item, GtkWidget *parent) ...@@ -480,7 +480,7 @@ switch_video_input_monitor(G_GNUC_UNUSED GtkWidget *item, GtkWidget *parent)
height = gdk_screen_height(); height = gdk_screen_height();
if (priv->avModel_) if (priv->avModel_)
priv->avModel_->setDisplay(display, x, y, width, height); priv->avModel_->setDisplay(display, x, y, width, height, priv->remote->v_renderer->getId());
} }
...@@ -505,7 +505,7 @@ switch_video_input_file(G_GNUC_UNUSED GtkWidget *item, GtkWidget *parent) ...@@ -505,7 +505,7 @@ switch_video_input_file(G_GNUC_UNUSED GtkWidget *item, GtkWidget *parent)
gchar *uri = gtk_file_chooser_get_uri(GTK_FILE_CHOOSER(dialog)); gchar *uri = gtk_file_chooser_get_uri(GTK_FILE_CHOOSER(dialog));
if (uri && priv->avModel_) { if (uri && priv->avModel_) {
priv->avModel_->setInputFile(uri); priv->avModel_->setInputFile(uri, priv->remote->v_renderer->getId());
g_free(uri); g_free(uri);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment