Changeset 5993:6d59557e02ce in roaraudio


Ignore:
Timestamp:
02/24/14 16:42:01 (5 years ago)
Author:
phi
Branch:
default
Message:

check for negative channel ID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/universal/filter-slfi-alternative.c

    r5988 r5993  
    6262  if ( !strcmp(kv->key, "channel") ) { 
    6363   self->channel = atoi(kv->value); 
     64   if ( self->channel < 0 ) 
     65    self->channel = 0; 
    6466  } else if ( !strcmp(kv->key, "event") ) { 
    6567   self->event = roar_roardmx_str2event(kv->value); 
Note: See TracChangeset for help on using the changeset viewer.