Changeset 5022:b2a2e896974d in roaraudio for roard


Ignore:
Timestamp:
05/27/11 17:13:54 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Converted most roarclients to to use VS API (See: #87)

Location:
roard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roard/include/streams.h

    r4967 r5022  
    203203int streams_check      (int id); 
    204204int streams_send_mon   (int id); 
     205int streams_send_filter_all(void); 
    205206int streams_send_filter(int id); 
    206207 
  • roard/loop.c

    r4896 r5022  
    128128#endif 
    129129   clients_send_filter(sa, g_pos); 
     130//   streams_send_filter_all(); // this currently results in deadlocks. 
    130131   clients_send_mon(sa, g_pos); 
    131132#ifdef ROAR_HAVE_USLEEP 
  • roard/streams.c

    r4987 r5022  
    25492549#undef _return 
    25502550 
     2551int streams_send_filter_all(void) { 
     2552 struct roar_stream_server *  ss; 
     2553 int i; 
     2554 
     2555 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 
     2556  if ( (ss = g_streams[i]) == NULL ) 
     2557   continue; 
     2558 
     2559  if ( ROAR_STREAM(ss)->dir != ROAR_DIR_FILTER ) 
     2560   continue; 
     2561 
     2562  if ( !ss->ready ) 
     2563   continue; 
     2564 
     2565  if ( ss->state == ROAR_STREAMSTATE_CLOSING ) 
     2566   continue; 
     2567 
     2568  streams_send_filter(i); 
     2569 } 
     2570 
     2571 return 0; 
     2572} 
     2573 
    25512574int streams_send_filter(int id) { 
    25522575 int fh; 
Note: See TracChangeset for help on using the changeset viewer.