Unified · Split
| @@ -431,7 +431,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 430 unmodified lines | ||
| 431 | 431 | { |
| 432 | 432 | struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; |
| 433 | 433 | struct decklink_ctx *ctx; |
| 434 | − IDeckLinkDisplayModeIterator *itermode; | |
| 435 | 434 | IDeckLinkIterator *iter; |
| 436 | 435 | IDeckLink *dl = NULL; |
| 437 | 436 | AVStream *st; |
| @@ -520,12 +519,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 82 unmodified lines | ||
| 520 | 519 | return AVERROR_EXIT; |
| 521 | 520 | } |
| 522 | 521 | |
| 523 | − if (ctx->dli->GetDisplayModeIterator(&itermode) != S_OK) { | |
| 524 | − av_log(avctx, AV_LOG_ERROR, "Could not get Display Mode Iterator\n"); | |
| 525 | − ctx->dl->Release(); | |
| 526 | − return AVERROR(EIO); | |
| 527 | − } | |
| 528 | − | |
| 529 | 522 | if (mode_num > 0) { |
| 530 | 523 | if (ff_decklink_set_format(avctx, DIRECTION_IN, mode_num) < 0) { |
| 531 | 524 | av_log(avctx, AV_LOG_ERROR, "Could not set mode %d for %s\n", mode_num, fname); |
| @@ -533,8 +526,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 1 unmodified line | ||
| 533 | 526 | } |
| 534 | 527 | } |
| 535 | 528 | |
| 536 | − itermode->Release(); | |
| 537 | − | |
| 538 | 529 | /* Setup streams. */ |
| 539 | 530 | st = avformat_new_stream(avctx, NULL); |
| 540 | 531 | if (!st) { |
| @@ -312,7 +312,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx) · 311 unmodified lines | ||
| 312 | 312 | { |
| 313 | 313 | struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; |
| 314 | 314 | struct decklink_ctx *ctx; |
| 315 | − IDeckLinkDisplayModeIterator *itermode; | |
| 316 | 315 | IDeckLinkIterator *iter; |
| 317 | 316 | IDeckLink *dl = NULL; |
| 318 | 317 | unsigned int n; |
| @@ -371,12 +370,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx) · 52 unmodified lines | ||
| 371 | 370 | return AVERROR_EXIT; |
| 372 | 371 | } |
| 373 | 372 | |
| 374 | − if (ctx->dlo->GetDisplayModeIterator(&itermode) != S_OK) { | |
| 375 | − av_log(avctx, AV_LOG_ERROR, "Could not get Display Mode Iterator\n"); | |
| 376 | − ctx->dl->Release(); | |
| 377 | − return AVERROR(EIO); | |
| 378 | − } | |
| 379 | − | |
| 380 | 373 | /* Setup streams. */ |
| 381 | 374 | for (n = 0; n < avctx->nb_streams; n++) { |
| 382 | 375 | AVStream *st = avctx->streams[n]; |
| @@ -392,7 +385,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx) · 9 unmodified lines | ||
| 392 | 385 | goto error; |
| 393 | 386 | } |
| 394 | 387 | } |
| 395 | − itermode->Release(); | |
| 396 | 388 | |
| 397 | 389 | return 0; |
| 398 | 390 | |