Changeset 3061:381084b03fd1 in roaraudio


Ignore:
Timestamp:
12/22/09 09:35:17 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed NULL dereferencing, set default source to cf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/sources.c

    r2681 r3061  
    2727#ifndef ROAR_WITHOUT_DCOMP_SOURCES 
    2828 
     29#define ROAR_SOURCE_DEFAULT "cf" 
     30 
    2931struct roar_source g_source[] = { 
    3032 {"raw",  "Raw source",                  "/some/file",     SRC_FLAG_FHSEC, ROAR_SUBSYS_WAVEFORM, NULL,  sources_add_raw}, 
     
    9496 int i; 
    9597 
     98 if ( driver == NULL ) 
     99  driver = ROAR_SOURCE_DEFAULT; 
     100 
    96101 for (i = 0; g_source[i].name != NULL; i++) { 
    97102  if ( !strcmp(g_source[i].name, driver) ) { 
Note: See TracChangeset for help on using the changeset viewer.