Commit 4ce0a77e authored by Marton Balint's avatar Marton Balint

avdevice/decklink: remove unused itermode iterators

Reviewed-by: 's avatarDeti Fliegl <deti@fliegl.de>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 1fc85d85
...@@ -431,7 +431,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) ...@@ -431,7 +431,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
{ {
struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
struct decklink_ctx *ctx; struct decklink_ctx *ctx;
IDeckLinkDisplayModeIterator *itermode;
IDeckLinkIterator *iter; IDeckLinkIterator *iter;
IDeckLink *dl = NULL; IDeckLink *dl = NULL;
AVStream *st; AVStream *st;
...@@ -520,12 +519,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) ...@@ -520,12 +519,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
return AVERROR_EXIT; return AVERROR_EXIT;
} }
if (ctx->dli->GetDisplayModeIterator(&itermode) != S_OK) {
av_log(avctx, AV_LOG_ERROR, "Could not get Display Mode Iterator\n");
ctx->dl->Release();
return AVERROR(EIO);
}
if (mode_num > 0) { if (mode_num > 0) {
if (ff_decklink_set_format(avctx, DIRECTION_IN, mode_num) < 0) { if (ff_decklink_set_format(avctx, DIRECTION_IN, mode_num) < 0) {
av_log(avctx, AV_LOG_ERROR, "Could not set mode %d for %s\n", mode_num, fname); 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) ...@@ -533,8 +526,6 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
} }
} }
itermode->Release();
/* Setup streams. */ /* Setup streams. */
st = avformat_new_stream(avctx, NULL); st = avformat_new_stream(avctx, NULL);
if (!st) { if (!st) {
......
...@@ -312,7 +312,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx) ...@@ -312,7 +312,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx)
{ {
struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data; struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;
struct decklink_ctx *ctx; struct decklink_ctx *ctx;
IDeckLinkDisplayModeIterator *itermode;
IDeckLinkIterator *iter; IDeckLinkIterator *iter;
IDeckLink *dl = NULL; IDeckLink *dl = NULL;
unsigned int n; unsigned int n;
...@@ -371,12 +370,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx) ...@@ -371,12 +370,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx)
return AVERROR_EXIT; return AVERROR_EXIT;
} }
if (ctx->dlo->GetDisplayModeIterator(&itermode) != S_OK) {
av_log(avctx, AV_LOG_ERROR, "Could not get Display Mode Iterator\n");
ctx->dl->Release();
return AVERROR(EIO);
}
/* Setup streams. */ /* Setup streams. */
for (n = 0; n < avctx->nb_streams; n++) { for (n = 0; n < avctx->nb_streams; n++) {
AVStream *st = avctx->streams[n]; AVStream *st = avctx->streams[n];
...@@ -392,7 +385,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx) ...@@ -392,7 +385,6 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx)
goto error; goto error;
} }
} }
itermode->Release();
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment