Changeset 5586:5b82b3417705 in roaraudio for roard/sources.c
- Timestamp:
- 07/22/12 02:24:07 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/sources.c
r5388 r5586 111 111 if ( !strcmp(g_source[i].name, driver) ) { 112 112 if ( g_source[i].new_open != NULL ) { 113 return sources_add_new(&(g_source[i]), driver, device, container,options, primary);113 return sources_add_new(&(g_source[i]), driver, device, options, primary); 114 114 } else if ( g_source[i].old_open != NULL ) { 115 115 return g_source[i].old_open(driver, device, container, options, primary); … … 127 127 int sources_add_new (struct roar_source * source, 128 128 char * driver, char * device, 129 char * container,130 129 char * options, int primary) { 131 130 int stream; … … 255 254 struct roar_vio_defaults def; 256 255 256 (void)driver; 257 257 258 if ( roar_vio_dstr_init_defaults(&def, ROAR_VIO_DEF_TYPE_NONE, O_RDONLY, 0644) == -1 ) 258 259 return -1; … … 282 283 struct roar_vio_defaults def; 283 284 285 (void)driver, (void)container; 286 284 287 if ( roar_vio_dstr_init_defaults(&def, ROAR_VIO_DEF_TYPE_NONE, O_RDONLY, 0644) == -1 ) 285 288 return -1; … … 385 388 size_t len, i; 386 389 390 (void)vio; 391 387 392 ROAR_DBG("sources_radionoise_read(vio=%p, buf=%p, count=%llu) = 0", vio, buf, (long long unsigned int)count); 388 393 … … 418 423 419 424 static int sources_radionoise_ctl(struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data) { 425 (void)vio, (void)data; 426 420 427 if ( cmd == ROAR_VIO_CTL_NONBLOCK ) 421 428 return 0; … … 428 435 struct roar_stream_server * ss; 429 436 struct roar_audio_info * info; 437 438 (void)device, (void)driver; 430 439 431 440 if ( fh > -1 ) … … 455 464 struct roar_stream * s; 456 465 466 (void)driver; 467 457 468 if ( fh > -1 ) 458 469 return -1;
Note: See TracChangeset
for help on using the changeset viewer.