mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 00:14:24 +01:00
libaf: add opts pointer to struct af_stream
This commit is contained in:
parent
4c92247437
commit
6335de8621
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include "options.h"
|
||||||
#include "af_format.h"
|
#include "af_format.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
#include "cpudetect.h"
|
#include "cpudetect.h"
|
||||||
@ -116,6 +117,7 @@ typedef struct af_stream
|
|||||||
af_data_t output;
|
af_data_t output;
|
||||||
// Configuration for this stream
|
// Configuration for this stream
|
||||||
af_cfg_t cfg;
|
af_cfg_t cfg;
|
||||||
|
struct MPOpts *opts;
|
||||||
}af_stream_t;
|
}af_stream_t;
|
||||||
|
|
||||||
/*********************************************
|
/*********************************************
|
||||||
|
@ -328,8 +328,8 @@ int init_audio_filters(sh_audio_t *sh_audio, int in_samplerate,
|
|||||||
{
|
{
|
||||||
af_stream_t *afs = sh_audio->afilter;
|
af_stream_t *afs = sh_audio->afilter;
|
||||||
if (!afs) {
|
if (!afs) {
|
||||||
afs = malloc(sizeof(af_stream_t));
|
afs = calloc(1, sizeof(struct af_stream));
|
||||||
memset(afs, 0, sizeof(af_stream_t));
|
afs->opts = sh_audio->opts;
|
||||||
}
|
}
|
||||||
// input format: same as codec's output format:
|
// input format: same as codec's output format:
|
||||||
afs->input.rate = in_samplerate;
|
afs->input.rate = in_samplerate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user