Changeset 2836:da3546900b6f in roaraudio


Ignore:
Timestamp:
10/03/09 01:22:52 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

ignore null codecfilter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter.c

    r2834 r2836  
    285285 
    286286 if (*codecfilter_id != -1) { 
    287   if ( filter->open ) { 
     287  if ( filter->open != NULL ) { 
    288288   if ( (i = filter->open(inst, codec, info, filter)) == -1 ) { 
    289289    info->codecfilter = *codecfilter_id = -1; 
    290290   } 
    291291   return i; 
     292  } else { 
     293   // in case we can not open the filter we will not use it 
     294   *codecfilter_id   = -1; 
     295   info->codecfilter = -1; 
    292296  } 
    293297  return 0; 
Note: See TracChangeset for help on using the changeset viewer.