diff --git a/src/inputs/file_http.c b/src/inputs/file_http.c index 824280aa..4f2743f1 100644 --- a/src/inputs/file_http.c +++ b/src/inputs/file_http.c @@ -59,7 +59,7 @@ static int start(struct player_source *ps) { struct transcode_ctx *ctx = ps->input_ctx; - struct input_quality quality = { 0 }; + struct media_quality quality = { 0 }; struct evbuffer *evbuf; short flags; int ret; @@ -69,6 +69,7 @@ start(struct player_source *ps) quality.sample_rate = transcode_encode_query(ctx->encode_ctx, "sample_rate"); quality.bits_per_sample = transcode_encode_query(ctx->encode_ctx, "bits_per_sample"); + quality.channels = transcode_encode_query(ctx->encode_ctx, "channels"); ret = -1; flags = 0; diff --git a/src/inputs/pipe.c b/src/inputs/pipe.c index 8c2cfaf2..b37308bc 100644 --- a/src/inputs/pipe.c +++ b/src/inputs/pipe.c @@ -831,7 +831,7 @@ static int start(struct player_source *ps) { struct pipe *pipe = ps->input_ctx; - struct input_quality quality = { 0 }; + struct media_quality quality = { 0 }; struct evbuffer *evbuf; short flags; int ret; @@ -845,6 +845,7 @@ start(struct player_source *ps) quality.sample_rate = pipe_sample_rate; quality.bits_per_sample = pipe_bits_per_sample; + quality.channels = 2; ret = -1; while (!input_loop_break)