comparison libaf/af_center.c @ 29049:8c706ce21c6f

Remove af_msg special-casing API in libaf. Replace it by standard mp_msg message system.
author bircoph
date Sat, 28 Mar 2009 19:57:56 +0000
parents 72d0b1444141
children 0f1b5b68af32
comparison
equal deleted inserted replaced
29048:584ff003cce9 29049:8c706ce21c6f
60 return control(af,AF_CONTROL_CENTER_CH | AF_CONTROL_SET, &ch); 60 return control(af,AF_CONTROL_CENTER_CH | AF_CONTROL_SET, &ch);
61 } 61 }
62 case AF_CONTROL_CENTER_CH | AF_CONTROL_SET: // Requires reinit 62 case AF_CONTROL_CENTER_CH | AF_CONTROL_SET: // Requires reinit
63 // Sanity check 63 // Sanity check
64 if((*(int*)arg >= AF_NCH) || (*(int*)arg < 0)){ 64 if((*(int*)arg >= AF_NCH) || (*(int*)arg < 0)){
65 af_msg(AF_MSG_ERROR,"[sub] Center channel number must be between " 65 mp_msg(MSGT_AFILTER, MSGL_ERR, "[sub] Center channel number must be between "
66 " 0 and %i current value is %i\n", AF_NCH-1, *(int*)arg); 66 " 0 and %i current value is %i\n", AF_NCH-1, *(int*)arg);
67 return AF_ERROR; 67 return AF_ERROR;
68 } 68 }
69 s->ch = *(int*)arg; 69 s->ch = *(int*)arg;
70 return AF_OK; 70 return AF_OK;