From d2d211c4a1be81bb18c2568c060debe76dc58de8 Mon Sep 17 00:00:00 2001 From: fredericofs Date: Wed, 23 Sep 2015 11:06:43 -0300 Subject: [PATCH] Update video.c Remove the timout, to avoid the application quits before the ending of some videos. (Application used to hang before last commit, now it quits, either, the only way to watch some video files till the end is to remove timeout completely like I am suggesting now, or to incrase it, but I dont now what should be better pratice. --- opt/vc/src/hello_pi/hello_video/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt/vc/src/hello_pi/hello_video/video.c b/opt/vc/src/hello_pi/hello_video/video.c index 1fec69df59ff..2edf44cf6d8c 100644 --- a/opt/vc/src/hello_pi/hello_video/video.c +++ b/opt/vc/src/hello_pi/hello_video/video.c @@ -183,7 +183,7 @@ static int video_decode_test(char *filename) // wait for EOS from render ilclient_wait_for_event(video_render, OMX_EventBufferFlag, 90, 0, OMX_BUFFERFLAG_EOS, 0, - ILCLIENT_BUFFER_FLAG_EOS, 10000); + ILCLIENT_BUFFER_FLAG_EOS, -1); // need to flush the renderer to allow video_decode to disable its input port ilclient_flush_tunnels(tunnel, 0);