Changeset 5441:258e31e8cf4c in roaraudio


Ignore:
Timestamp:
03/20/12 23:40:27 (10 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

enable usage of AppSched? WAIT with container

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/plugincontainer.c

    r5438 r5441  
    378378int roar_plugincontainer_appsched_trigger(struct roar_plugincontainer * cont, enum roar_dl_appsched_trigger trigger) { 
    379379 size_t i; 
     380 int ret = -1; 
     381 int rv; 
    380382 
    381383 if ( cont == NULL ) { 
     384  roar_err_set(ROAR_ERROR_FAULT); 
     385  return -1; 
     386 } 
     387 
     388 if ( cont->numhandles == 1 ) { 
     389  for (i = 0; i < MAX_PLUGINS; i++) { 
     390   if ( cont->handle[i] == NULL ) 
     391    continue; 
     392   return roar_dl_appsched_trigger(cont->handle[i], trigger); 
     393  } 
     394  roar_panic(ROAR_FATAL_ERROR_MEMORY_CORRUPTION, NULL); 
    382395  roar_err_set(ROAR_ERROR_FAULT); 
    383396  return -1; 
     
    388401   continue; 
    389402 
    390   roar_dl_appsched_trigger(cont->handle[i], trigger); 
    391  } 
    392  
    393  return 0; 
     403  rv = roar_dl_appsched_trigger(cont->handle[i], trigger); 
     404  if ( rv == 0 ) 
     405   ret = 0; 
     406 } 
     407 
     408 return ret; 
    394409} 
    395410 
Note: See TracChangeset for help on using the changeset viewer.