MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_decklink_cleanup

Function ff_decklink_cleanup

libavdevice/decklink_common.cpp:653–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653void ff_decklink_cleanup(AVFormatContext *avctx)
654{
655 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
656 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
657
658 if (ctx->dli)
659 ctx->dli->Release();
660 if (ctx->dlo)
661 ctx->dlo->Release();
662 if (ctx->attr)
663 ctx->attr->Release();
664 if (ctx->cfg)
665 ctx->cfg->Release();
666 if (ctx->dl)
667 ctx->dl->Release();
668}
669
670int ff_decklink_init_device(AVFormatContext *avctx, const char* name)
671{

Callers 5

ff_decklink_read_closeFunction · 0.85
ff_decklink_read_headerFunction · 0.85
ff_decklink_write_headerFunction · 0.85
ff_decklink_init_deviceFunction · 0.85

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected