|
|
@ -116,7 +116,7 @@ static int decoder_got_frame(decoder_t *dec, AVFrame *frame, void *sp, void *dp) |
|
|
if (G_UNLIKELY(deco->mixer_idx == (unsigned int) -1)) |
|
|
if (G_UNLIKELY(deco->mixer_idx == (unsigned int) -1)) |
|
|
deco->mixer_idx = mix_get_index(metafile->mix, ssrc); |
|
|
deco->mixer_idx = mix_get_index(metafile->mix, ssrc); |
|
|
format_t actual_format; |
|
|
format_t actual_format; |
|
|
if (output_config(metafile->mix_out, &dec->out_format, &actual_format)) |
|
|
|
|
|
|
|
|
if (output_config(metafile->mix_out, &dec->dest_format, &actual_format)) |
|
|
goto no_mix_out; |
|
|
goto no_mix_out; |
|
|
mix_config(metafile->mix, &actual_format); |
|
|
mix_config(metafile->mix, &actual_format); |
|
|
// XXX might be a second resampling to same format |
|
|
// XXX might be a second resampling to same format |
|
|
@ -133,7 +133,7 @@ no_mix_out: |
|
|
|
|
|
|
|
|
if (output) { |
|
|
if (output) { |
|
|
dbg("SSRC %lx of stream #%lu has single output", ssrc->ssrc, stream->id); |
|
|
dbg("SSRC %lx of stream #%lu has single output", ssrc->ssrc, stream->id); |
|
|
if (output_config(output, &dec->out_format, NULL)) |
|
|
|
|
|
|
|
|
if (output_config(output, &dec->dest_format, NULL)) |
|
|
goto err; |
|
|
goto err; |
|
|
if (output_add(output, frame)) |
|
|
if (output_add(output, frame)) |
|
|
ilog(LOG_ERR, "Failed to add decoded packet to individual output"); |
|
|
ilog(LOG_ERR, "Failed to add decoded packet to individual output"); |
|
|
|