History

avdevice/decklink_dec: increase autodetect timeout to 3 sec

1 sec might not be enough for the cards to detect the format...

Marton Balint committed 6 years ago

Commit f04fe8a1 parent 550fa271 file · +2 −2Browse files

Showing the changes to libavdevice (1 of 1 file). Show all

Unified · Split

libavdevice/decklink_dec.cpp+2−2
@@ -950,8 +950,8 @@ static int decklink_autodetect(struct decklink_cctx *cctx) { · 949 unmodified lines
950 return -1;950 return -1;
951 }951 }
952 952
953 // 1 second timeout953 // 3 second timeout
954 for (i = 0; i < 10; i++) {954 for (i = 0; i < 30; i++) {
955 av_usleep(100000);955 av_usleep(100000);
956 /* Sometimes VideoInputFrameArrived is called without the956 /* Sometimes VideoInputFrameArrived is called without the
957 * bmdFrameHasNoInputSource flag before VideoInputFormatChanged.957 * bmdFrameHasNoInputSource flag before VideoInputFormatChanged.

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