Commit 23b7c67e authored by Laurent Aimar's avatar Laurent Aimar

Check against invalid i_title_timeout value.

parent 205ce9a8
...@@ -1791,6 +1791,9 @@ static void DisplayTitleOnOSD( vout_thread_t *p_vout ) ...@@ -1791,6 +1791,9 @@ static void DisplayTitleOnOSD( vout_thread_t *p_vout )
const mtime_t i_start = mdate(); const mtime_t i_start = mdate();
const mtime_t i_stop = i_start + INT64_C(1000) * p_vout->p->i_title_timeout; 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 ); vlc_assert_locked( &p_vout->change_lock );
vout_ShowTextAbsolute( p_vout, DEFAULT_CHAN, vout_ShowTextAbsolute( p_vout, DEFAULT_CHAN,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment