goto error;
}
+ if (ff_decklink_set_configs(avctx, DIRECTION_IN) < 0) {
+ av_log(avctx, AV_LOG_ERROR, "Could not set input configuration\n");
+ ret = AVERROR(EIO);
+ goto error;
+ }
+
/* List supported formats. */
if (ctx->list_formats) {
ff_decklink_list_formats(avctx, DIRECTION_IN);
goto error;
}
- if (ff_decklink_set_configs(avctx, DIRECTION_IN) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Could not set input configuration\n");
- ret = AVERROR(EIO);
- goto error;
- }
-
input_callback = new decklink_input_callback(avctx);
ret = (ctx->dli->SetCallback(input_callback) == S_OK ? 0 : AVERROR_EXTERNAL);
input_callback->Release();