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

Unified · Split

libavdevice/decklink_dec.cpp+2−2
@@ -950,8 +950,8 @@ static int decklink_autodetect(struct decklink_cctx *cctx) { · 949 unmodified lines
950950 return -1;
951951 }
952952
953− // 1 second timeout
954− for (i = 0; i < 10; i++) {
953+ // 3 second timeout
954+ for (i = 0; i < 30; i++) {
955955 av_usleep(100000);
956956 /* Sometimes VideoInputFrameArrived is called without the
957957 * 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