1 sec might not be enough for the cards to detect the format...
Unified · Split
| @@ -950,8 +950,8 @@ static int decklink_autodetect(struct decklink_cctx *cctx) { · 949 unmodified lines | ||
| 950 | 950 | return -1; |
| 951 | 951 | } |
| 952 | 952 | |
| 953 | − // 1 second timeout | |
| 954 | − for (i = 0; i < 10; i++) { | |
| 953 | + // 3 second timeout | |
| 954 | + for (i = 0; i < 30; i++) { | |
| 955 | 955 | av_usleep(100000); |
| 956 | 956 | /* Sometimes VideoInputFrameArrived is called without the |
| 957 | 957 | * bmdFrameHasNoInputSource flag before VideoInputFormatChanged. |