Mercurial > mplayer.hg
comparison libaf/af.c @ 33157:8073274a9ff2
Add const to type for pointer to a string constant.
author | reimar |
---|---|
date | Sat, 09 Apr 2011 20:10:12 +0000 |
parents | 8fa2f43cb760 |
children | 2a2e9b6551d8 |
comparison
equal
deleted
inserted
replaced
33156:9ac31195a5e0 | 33157:8073274a9ff2 |
---|---|
489 if(s->output.rate && s->last->data->rate!=s->output.rate){ | 489 if(s->output.rate && s->last->data->rate!=s->output.rate){ |
490 // try to find a filter that can change samplrate | 490 // try to find a filter that can change samplrate |
491 af = af_control_any_rev(s, AF_CONTROL_RESAMPLE_RATE | AF_CONTROL_SET, | 491 af = af_control_any_rev(s, AF_CONTROL_RESAMPLE_RATE | AF_CONTROL_SET, |
492 &(s->output.rate)); | 492 &(s->output.rate)); |
493 if (!af) { | 493 if (!af) { |
494 char *resampler = "resample"; | 494 const char *resampler = "resample"; |
495 #ifdef CONFIG_FFMPEG | 495 #ifdef CONFIG_FFMPEG |
496 if ((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_SLOW) | 496 if ((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_SLOW) |
497 resampler = "lavcresample"; | 497 resampler = "lavcresample"; |
498 #endif | 498 #endif |
499 if((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_SLOW){ | 499 if((AF_INIT_TYPE_MASK & s->cfg.force) == AF_INIT_SLOW){ |