[vlc-devel] commit: Protect a bit against invalid pcr. (Laurent Aimar )

git version control git at videolan.org
Tue Sep 30 22:30:59 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Sep 28 16:24:23 2008 +0200| [c1708e15037956409fd3f6312e6f9911e8b967b0] | committer: Laurent Aimar 

Protect a bit against invalid pcr.

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

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

diff --git a/src/input/input.c b/src/input/input.c
index e5f30fe..2c7b746 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1398,6 +1398,9 @@ static inline int ControlPopNoLock( input_thread_t *p_input,
 
     while( p_input->p->i_control <= 0 )
     {
+        if( !vlc_object_alive( p_input ) )
+            return VLC_EGENERIC;
+
         if( i_deadline < 0 )
             return VLC_EGENERIC;
 




More information about the vlc-devel mailing list