[ekiga/ds-clutter] ClutterGst: Fixed open signal propagation.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-clutter] ClutterGst: Fixed open signal propagation.
- Date: Sun, 5 Jan 2014 17:13:25 +0000 (UTC)
commit 33028b6723f9679f75c0993ad32e79c66b800359
Author: Damien Sandras <dsandras beip be>
Date: Sun Jan 5 18:11:10 2014 +0100
ClutterGst: Fixed open signal propagation.
.../videooutput-manager-clutter-gst.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/clutter-gst-videooutput/videooutput-manager-clutter-gst.cpp
b/lib/engine/components/clutter-gst-videooutput/videooutput-manager-clutter-gst.cpp
index a0b9f16..22c95e2 100644
--- a/lib/engine/components/clutter-gst-videooutput/videooutput-manager-clutter-gst.cpp
+++ b/lib/engine/components/clutter-gst-videooutput/videooutput-manager-clutter-gst.cpp
@@ -57,6 +57,8 @@ GMVideoOutputManager_clutter_gst::GMVideoOutputManager_clutter_gst (G_GNUC_UNUSE
for (int i = 0 ; i < 3 ; i++) {
texture[i] = NULL;
pipeline[i] = NULL;
+ current_height[i] = 0;
+ current_width[i] = 0;
}
}
@@ -144,6 +146,8 @@ GMVideoOutputManager_clutter_gst::close ()
gst_element_set_state (pipeline[i], GST_STATE_NULL);
gst_object_unref (pipeline[i]);
pipeline[i] = NULL;
+ current_height[i] = 0;
+ current_width[i] = 0;
}
devices_nbr = 0;
@@ -178,7 +182,7 @@ GMVideoOutputManager_clutter_gst::set_frame_data (const char *data,
return;
}
- if (_devices_nbr != devices_nbr) {
+ if (current_width[i] != width || current_height[i] != height) {
Ekiga::Runtime::run_in_main
(boost::bind (&GMVideoOutputManager_clutter_gst::device_opened_in_main,
this,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]