Sorry about the misread, then I think its better to change my code. When I receiving UDP stream using omxplayer if stream unavailable omxplayer automatically closed is there any way to keep omxplayer open until UDP stream available and playing again.
Thanks.