Showing the changes to libavdevice/decklink_common.cpp (1 of 6 files). Show all
Unified · Split
| @@ -214,6 +214,15 @@ int ff_decklink_set_configs(AVFormatContext *avctx, · 213 unmodified lines | |||
| 214 | if (res != S_OK) | 214 | if (res != S_OK) |
| 215 | av_log(avctx, AV_LOG_WARNING, "Setting timing offset failed.\n"); | 215 | av_log(avctx, AV_LOG_WARNING, "Setting timing offset failed.\n"); |
| 216 | } | 216 | } |
| 217 | |||
| 218 | if (direction == DIRECTION_OUT && ctx->link > 0) { | ||
| 219 | res = ctx->cfg->SetInt(bmdDeckLinkConfigSDIOutputLinkConfiguration, ctx->link); | ||
| 220 | if (res != S_OK) | ||
| 221 | av_log(avctx, AV_LOG_WARNING, "Setting link configuration failed.\n"); | ||
| 222 | else | ||
| 223 | av_log(avctx, AV_LOG_VERBOSE, "Successfully set link configuration: 0x%x.\n", ctx->link); | ||
| 224 | } | ||
| 225 | |||
| 217 | return 0; | 226 | return 0; |
| 218 | } | 227 | } |
| 219 | 228 | ||