Changeset 4240:a8d45cd31d5d in roaraudio


Ignore:
Timestamp:
08/25/10 13:54:41 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added more and corrected debug lions

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r4229 r4240  
    641641 int i; 
    642642 
     643 ROAR_DBG("client_stream_set_fh(client=%i, stream=%i, fh=%i) = ?", client, stream, fh); 
     644 
    643645 _CHECK_CID(client); 
    644646 
    645647 for (i = 0; i < ROAR_CLIENTS_MAX_STREAMS_PER_CLIENT; i++) { 
    646648  if ( g_clients[client]->streams[i] == stream ) { 
     649   ROAR_DBG("client_stream_set_fh(client=%i, stream=%i, fh=%i): stream found, index %i", client, stream, fh, i); 
    647650   return streams_set_fh(stream, fh); 
    648651  } 
    649652 } 
    650653 
     654 ROAR_WARN("client_stream_set_fh(client=%i, stream=%i, fh=%i) = -1 // client does not own stream", client, stream, fh); 
    651655 return -1; 
    652656} 
  • roard/streams.c

    r4239 r4240  
    539539  return -1; 
    540540 
    541  if ( ss->ready ) 
    542   return -1; 
     541 if ( ss->ready ) { 
     542  ROAR_DBG("streams_set_fh(id=%i, fh=%i) = -1 // try to set fh for stream which is already ready", id, fh); 
     543  return -1; 
     544 } 
    543545 
    544546 dir = ROAR_STREAM(ss)->dir; 
    545547 
    546  ROAR_DBG("streams_set_fh(id=%i): g_streams[id]->id=%i", id, s->id); 
     548 ROAR_DBG("streams_set_fh(id=%i, fh=%i): g_streams[id]->id=%i", id, fh, s->id); 
    547549 
    548550 s->fh = fh; 
Note: See TracChangeset for help on using the changeset viewer.