[vlc-devel] commit: RTP: disablep preemption when queueing. ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Oct 14 19:19:47 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Wed Oct 14 20:19:21 2009 +0300| [b2521cdd39f0cf058fce5cee1517af6abb3388cc] | committer: Rémi Denis-Courmont 

RTP: disablep preemption when queueing.

(manually backported)

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

 modules/access/rtp/input.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/access/rtp/input.c b/modules/access/rtp/input.c
index 9e7a293..5330320 100644
--- a/modules/access/rtp/input.c
+++ b/modules/access/rtp/input.c
@@ -171,6 +171,7 @@ void *rtp_thread (void *data)
     {
         block_t *block = rtp_recv (demux);
 
+        int canc = vlc_savecancel ();
         vlc_mutex_lock (&p_sys->lock);
         if (block == NULL)
             p_sys->dead = true; /* Fatal error: abort */
@@ -190,6 +191,7 @@ void *rtp_thread (void *data)
         }
         vlc_cond_signal (&p_sys->wait);
         vlc_mutex_unlock (&p_sys->lock);
+        vlc_restorecancel (canc);
     }
     while (!p_sys->dead);
 




More information about the vlc-devel mailing list