------- 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=131218         
andre duffeck de changed:

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



------- Additional Comments From andre duffeck de  2006-10-07 18:50 -------
SVN commit 593368 by duffeck:

Fix bug where only the first image of a webcam transmission was shown.
BUG:131218


 M  +8 -4      webcamtask.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/protocols/yahoo/libkyahoo/webcamtask.cpp 
#593367:593368
 @ -213,13 +213,11  @
        {
                case ConnectedStage1:
                        disconnect( socket, SIGNAL( readyRead() ), this, SLOT( 
slotRead() ) );
-                       kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Connected 
into stage 1" << endl;
                        connectStage2( socket );
                break;
                case ConnectedStage2:
                case Sending:
                case SendingEmpty:
-                       kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Connected 
into stage 2" << endl;
                        processData( socket );
                default:
                break;
 @ -278,7 +276,6  @
 
 void WebcamTask::processData( KStreamSocket *socket )
 {
-       kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << endl;
        QByteArray data( socket->bytesAvailable() );
        
        socket->readBlock ( data.data (), data.size () );
 @ -293,7 +290,6  @
 
 void WebcamTask::parseData( QByteArray &data, KStreamSocket *socket )
 {
-       kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << " data " << data.size() << " 
bytes " << endl;
        uint headerLength = 0;
        uint read = 0;
        YahooWebcamInformation *info = &socketMap[socket];
 @ -398,9 +394,17  @
        }
        
        if( info->dataLength <= 0 )
+       {
+               kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "No data to read. 
(info->dataLength <= 0)" << endl;
+               if( info->headerRead )
+                       info->headerRead = false;
                return;
+       }
        if( headerLength >= data.size() )
+       {
+               kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "No data to read. 
(headerLength >= data.size())" << endl;
                return;         //Nothing to read here...
+       }
        if( !info->buffer )
        {
                kdDebug(YAHOO_RAW_DEBUG) << k_funcinfo << "Buffer created" << 
endl;
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to