lavd/sdl: add delay when no events are found in the event queue
authorStefano Sabatini <stefasab@gmail.com>
Tue, 26 Nov 2013 17:37:30 +0000 (18:37 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 26 Nov 2013 17:38:48 +0000 (18:38 +0100)
commit70433119691042eaa646adab5903c2302a42fc22
tree98f78cbda9189b47e78e86c7c089f7b6777480b7
parent35349bbb97eb29e98f63bf48efc15b6bbda6157a
lavd/sdl: add delay when no events are found in the event queue

Avoid busy loops and decrease CPU usage.

Suggested-By: Roger Pack
libavdevice/sdl.c