From e69dbf02cd6064cf8f27753669043526995eb2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Fri, 15 Nov 2019 10:45:07 -0500 Subject: [PATCH] video_widget: switch video input on current remote id Change-Id: Ic36850b211748117e510e13ce2293a03117711f5 --- src/video/video_widget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/video_widget.cpp b/src/video/video_widget.cpp index 3fa36f32..2c2baf02 100644 --- a/src/video/video_widget.cpp +++ b/src/video/video_widget.cpp @@ -417,7 +417,7 @@ switch_video_input(GtkWidget *widget, GtkWidget *parent) g_warning("switch_video_input couldn't find device: %s", label); 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) } 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 @@ -480,7 +480,7 @@ switch_video_input_monitor(G_GNUC_UNUSED GtkWidget *item, GtkWidget *parent) height = gdk_screen_height(); 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) gchar *uri = gtk_file_chooser_get_uri(GTK_FILE_CHOOSER(dialog)); if (uri && priv->avModel_) { - priv->avModel_->setInputFile(uri); + priv->avModel_->setInputFile(uri, priv->remote->v_renderer->getId()); g_free(uri); } } -- GitLab