mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 04:44:32 +01:00
sig 11 fix in reinit and resample + spelling error fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8712 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
58bf4d5557
commit
b1cdf7ba57
@ -287,7 +287,7 @@ int af_reinit(af_stream_t* s, af_instance_t* af)
|
|||||||
}
|
}
|
||||||
// Check if there are any filters left in the list
|
// Check if there are any filters left in the list
|
||||||
if(NULL == af){
|
if(NULL == af){
|
||||||
if(!af_append(s,s->first,"dummy"))
|
if(!(af=af_append(s,s->first,"dummy")))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -20,7 +20,7 @@ typedef struct af_channels_s{
|
|||||||
}af_channels_t;
|
}af_channels_t;
|
||||||
|
|
||||||
// Local function for copying data
|
// Local function for copying data
|
||||||
void copy(void* in, void* out, int ins, int inos,int outs, int outos, int len, int bps)
|
static void copy(void* in, void* out, int ins, int inos,int outs, int outos, int len, int bps)
|
||||||
{
|
{
|
||||||
switch(bps){
|
switch(bps){
|
||||||
case 1:{
|
case 1:{
|
||||||
@ -86,7 +86,7 @@ static int check_routes(af_channels_t* s, int nin, int nout)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
if((s->nr < 1) || (s->nr > AF_NCH)){
|
if((s->nr < 1) || (s->nr > AF_NCH)){
|
||||||
af_msg(AF_MSG_ERROR,"[channels] The number of routing pairs musst be"
|
af_msg(AF_MSG_ERROR,"[channels] The number of routing pairs must be"
|
||||||
" between 1 and %i. Current value is %i\n",AF_NCH,s->nr);
|
" between 1 and %i. Current value is %i\n",AF_NCH,s->nr);
|
||||||
return AF_ERROR;
|
return AF_ERROR;
|
||||||
}
|
}
|
||||||
@ -149,14 +149,14 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
|||||||
int ch = 0;
|
int ch = 0;
|
||||||
// Sanity check
|
// Sanity check
|
||||||
if((s->nr < 1) || (s->nr > AF_NCH)){
|
if((s->nr < 1) || (s->nr > AF_NCH)){
|
||||||
af_msg(AF_MSG_ERROR,"[channels] The number of routing pairs musst be"
|
af_msg(AF_MSG_ERROR,"[channels] The number of routing pairs must be"
|
||||||
" between 1 and %i. Current value is %i\n",AF_NCH,s->nr);
|
" between 1 and %i. Current value is %i\n",AF_NCH,s->nr);
|
||||||
}
|
}
|
||||||
s->router = 1;
|
s->router = 1;
|
||||||
// Scan for pairs on commandline
|
// Scan for pairs on commandline
|
||||||
while((*cp == ':') && (ch < s->nr)){
|
while((*cp == ':') && (ch < s->nr)){
|
||||||
sscanf(cp, ":%i:%i%n" ,&s->route[ch][FR], &s->route[ch][TO], &n);
|
sscanf(cp, ":%i:%i%n" ,&s->route[ch][FR], &s->route[ch][TO], &n);
|
||||||
af_msg(AF_MSG_DEBUG0,"[channels] Routing from channel %i to"
|
af_msg(AF_MSG_VERBOSE,"[channels] Routing from channel %i to"
|
||||||
" channel %i\n",s->route[ch][FR],s->route[ch][TO]);
|
" channel %i\n",s->route[ch][FR],s->route[ch][TO]);
|
||||||
cp = &cp[n];
|
cp = &cp[n];
|
||||||
ch++;
|
ch++;
|
||||||
|
@ -132,7 +132,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
|||||||
size_t tsz = (s->type==TYPE_INT) ? sizeof(int16_t) : sizeof(float);
|
size_t tsz = (s->type==TYPE_INT) ? sizeof(int16_t) : sizeof(float);
|
||||||
|
|
||||||
// Make sure this filter isn't redundant
|
// Make sure this filter isn't redundant
|
||||||
if(af->data->rate == n->rate)
|
if((af->data->rate == n->rate) || (af->data->rate == 0))
|
||||||
return AF_DETACH;
|
return AF_DETACH;
|
||||||
|
|
||||||
// If linear interpolation
|
// If linear interpolation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user