ekiga r7097 - in trunk: . lib/engine/audioinput/skel lib/engine/audiooutput/skel lib/engine/videoinput/skel



Author: mschneid
Date: Thu Sep 25 17:24:12 2008
New Revision: 7097
URL: http://svn.gnome.org/viewvc/ekiga?rev=7097&view=rev

Log:
Fix message box when device was unplugged in out-of-call state (#552262)


Modified:
   trunk/ChangeLog
   trunk/lib/engine/audioinput/skel/audioinput-core.cpp
   trunk/lib/engine/audiooutput/skel/audiooutput-core.cpp
   trunk/lib/engine/videoinput/skel/videoinput-core.cpp

Modified: trunk/lib/engine/audioinput/skel/audioinput-core.cpp
==============================================================================
--- trunk/lib/engine/audioinput/skel/audioinput-core.cpp	(original)
+++ trunk/lib/engine/audioinput/skel/audioinput-core.cpp	Thu Sep 25 17:24:12 2008
@@ -250,7 +250,7 @@
        iter++) {
      if ((*iter)->has_device (source, device_name, device)) {
 
-       if ( current_device == device) {
+       if ( ( current_device == device) && (preview_config.active || stream_config.active) ) {
 
             AudioInputDevice new_device;
             new_device.type = AUDIO_INPUT_FALLBACK_DEVICE_TYPE;

Modified: trunk/lib/engine/audiooutput/skel/audiooutput-core.cpp
==============================================================================
--- trunk/lib/engine/audiooutput/skel/audiooutput-core.cpp	(original)
+++ trunk/lib/engine/audiooutput/skel/audiooutput-core.cpp	Thu Sep 25 17:24:12 2008
@@ -225,7 +225,7 @@
        iter != managers.end ();
        iter++) {
      if ((*iter)->has_device (sink, device_name, device)) {
-       if (device == current_device[primary]) {
+       if ( (device == current_device[primary]) && (current_primary_config.active) ) {
 
          AudioOutputDevice new_device;
          new_device.type   = AUDIO_OUTPUT_FALLBACK_DEVICE_TYPE;

Modified: trunk/lib/engine/videoinput/skel/videoinput-core.cpp
==============================================================================
--- trunk/lib/engine/videoinput/skel/videoinput-core.cpp	(original)
+++ trunk/lib/engine/videoinput/skel/videoinput-core.cpp	Thu Sep 25 17:24:12 2008
@@ -244,7 +244,7 @@
        iter != managers.end ();
        iter++) {
      if ((*iter)->has_device (source, device_name, capabilities, device)) {
-       if ( current_device == device ) {
+       if ( (current_device == device) && (preview_config.active || stream_config.active) ) {
 
             VideoInputDevice new_device;
             new_device.type   = VIDEO_INPUT_FALLBACK_DEVICE_TYPE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]