Changeset 3720:8dbb17e15f1e in roaraudio


Ignore:
Timestamp:
04/25/10 05:33:54 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

get client passing to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r3714 r3720  
    292292int req_on_passfh      (int client, struct roar_message * mes, char * data) { 
    293293 int sock = clients_get_fh(client); 
    294  int16_t * d = (int16_t*)data; 
     294 int16_t * d = (int16_t*)mes->data; 
    295295 int fh; 
    296296 int i; 
     
    299299  return -1; 
    300300 
    301  if ( mes->stream != -1 ) { // stream pass: 
     301 if ( (int16_t)mes->stream != -1 ) { // stream pass: 
    302302  if ( client_stream_set_fh(client, mes->stream, fh) == -1 ) { 
    303303   close(fh); 
     
    351351 mes->cmd     = ROAR_CMD_OK; 
    352352 
    353  return -1; 
     353 return 0; 
    354354} 
    355355 
Note: See TracChangeset for help on using the changeset viewer.