[vlc-devel] commit: Check against invalid i_title_timeout value. (Laurent Aimar )

git version control git at videolan.org
Fri May 1 15:13:50 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri May  1 15:07:30 2009 +0200| [23b7c67e3c1ab2bbd534c253325b28a0783c9ac1] | committer: Laurent Aimar 

Check against invalid i_title_timeout value.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23b7c67e3c1ab2bbd534c253325b28a0783c9ac1
---

 src/video_output/video_output.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 5d48bca..5308c6a 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1791,6 +1791,9 @@ static void DisplayTitleOnOSD( vout_thread_t *p_vout )
     const mtime_t i_start = mdate();
     const mtime_t i_stop = i_start + INT64_C(1000) * p_vout->p->i_title_timeout;
 
+    if( i_stop <= i_start )
+        return
+
     vlc_assert_locked( &p_vout->change_lock );
 
     vout_ShowTextAbsolute( p_vout, DEFAULT_CHAN,




More information about the vlc-devel mailing list