1 sec might not be enough for the cards to detect the format...
Showing the changes to libavdevice (1 of 1 file). Show all
Unified · Split
| @@ -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 timeout | 953 | // 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 the | 956 | /* Sometimes VideoInputFrameArrived is called without the |
| 957 | * bmdFrameHasNoInputSource flag before VideoInputFormatChanged. | 957 | * bmdFrameHasNoInputSource flag before VideoInputFormatChanged. |