mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-18 05:40:02 +01:00
corrected bug in counting of messages arrived
git-svn-id: svn://code.dyne.org/veejay/trunk@191 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -450,6 +450,10 @@ int _vj_server_parse_msg( vj_server *vje,int link_id, char *buf, int buf_len )
|
||||
vj_message **v = Link[link_id]->m_queue;
|
||||
while( i < buf_len )
|
||||
{
|
||||
|
||||
while( buf[i] != 'V' && buf[i+4] != 'D' )
|
||||
i++;
|
||||
|
||||
if( buf[i] == 'V' && buf[i+4] == 'D' )
|
||||
{
|
||||
int len, n;
|
||||
@@ -467,7 +471,6 @@ int _vj_server_parse_msg( vj_server *vje,int link_id, char *buf, int buf_len )
|
||||
num_msg ++;
|
||||
}
|
||||
}
|
||||
i ++;
|
||||
}
|
||||
Link[link_id]->n_queued = num_msg;
|
||||
Link[link_id]->n_retrieved = 0;
|
||||
@@ -549,6 +552,9 @@ int vj_server_update( vj_server *vje, int id )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
veejay_msg(VEEJAY_MSG_DEBUG, "data in buffer : [%s]", vje->recv_buf );
|
||||
|
||||
return _vj_server_parse_msg( vje, id, vje->recv_buf,n );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user