------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=131861         
ogoffart kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From ogoffart kde org  2007-01-09 14:17 -------
SVN commit 621650 by ogoffart:

Speed up the webcam rate.
Default to 25fps,   configurable with an hidden entry in the config file. 
(which should be documented somewhere)

Patch by Xavier FACQ, thanks

BUG: 131861



 M  +9 -2      webcam.cpp  
 M  +2 -1      webcam.h  


--- branches/KDE/3.5/kdenetwork/kopete/protocols/msn/webcam.cpp #621649:621650
 @ -53,6 +53,13  @
        
        m_mimic=0L;
        m_widget=0L;
+
+       KConfig *config = KGlobal::config();
+       config->setGroup( "MSN" );
+
+       // Read the configuration to get the number of frame per second to send
+       int webCamFps=config->readNumEntry("WebcamFPS", 25);
+       m_timerFps = 1000 / webCamFps;
 }
 
 Webcam::~Webcam()
 @ -657,7 +664,7  @
                                        videoDevice->setSize(320, 240);
                                        videoDevice->startCapturing();
                                        
-                                       m_timerId=startTimer(1000);
+                                       m_timerId=startTimer(m_timerFps);
                                        kdDebug(14140) << k_funcinfo <<  "new 
timer" << m_timerId << endl;
                                }
                                m_widget=new MSNWebcamDialog(m_recipient);
 @ -707,7 +714,7  @
                                        videoDevice->setSize(320, 240);
                                        videoDevice->startCapturing();
                                        
-                                       m_timerId=startTimer(1000);
+                                       m_timerId=startTimer(m_timerFps);
                                        kdDebug(14140) << k_funcinfo <<  "new 
timer" << m_timerId << endl;
                                }
                                m_widget=new MSNWebcamDialog(m_recipient);
--- branches/KDE/3.5/kdenetwork/kopete/protocols/msn/webcam.h #621649:621650
 @ -50,7 +50,7  @
                QString m_content;
                
                QString xml(uint session , uint rid);
-    int getAvailablePort();
+               int getAvailablePort();
 
                
                KNetwork::KServerSocket   *m_listener;
 @ -70,6 +70,7  @
                QMap<KNetwork::KBufferedSocket*, WebcamStatus> m_webcamStates;
                
                int m_timerId;
+               int m_timerFps;
 
        private slots:
                void slotListenError(int errorCode);
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to