History

avdevice/decklink_dec: fix stopping streams in read_close

The capture_started variable was never set, it is simpler to call the stop functions unconditionally if the interface is available.

Marton Balint committed 6 years ago

Commit 95324ec1 parent 3e9793c2 files · +1 −2Browse files

Showing the changes to libavdevice/decklink_dec.cpp (1 of 2 files). Show all

Unified · Split

libavdevice/decklink_dec.cpp+1−1
@@ -983,7 +983,7 @@ av_cold int ff_decklink_read_close(AVFormatContext *avctx) · 982 unmodified lines
983 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;983 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
984 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;984 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
985 985
986 if (ctx->capture_started) {986 if (ctx->dli) {
987 ctx->dli->StopStreams();987 ctx->dli->StopStreams();
988 ctx->dli->DisableVideoInput();988 ctx->dli->DisableVideoInput();
989 ctx->dli->DisableAudioInput();989 ctx->dli->DisableAudioInput();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t