[vlc-devel] [PATCH] Symbian main routine

Pankaj yadav pankajdnapster at gmail.com
Sun Jan 23 16:09:13 CET 2011


On Sun, Jan 23, 2011 at 12:04 AM, Tobias Güntner <fatbull at web.de> wrote:

> > +static symbian_libvlc_Wait( libvlc_int_t *p_libvlc )
> > +{
> > +    vlc_sem_init(&exit_sem,0);
> > +    vlc_sem_wait(&exit_sem);
> > +    vlc_sem_destroy(&exit_sem);
> > +}
>
> This is a race condition. It is not guaranteed that vlc_sem_init has
> completed when another thread calls vlc_sem_post on exit_sem.
>
> fixed in attached patch

> --
> Regards,
> Tobias
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



-- 
Pankaj Yadav
http://people.videolan.org/~pk <http://people.videolan.org/%7Epk>
Open Source Enthusiast
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110123/672e8c11/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-main-routine-fro-symbian.patch
Type: text/x-diff
Size: 3302 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110123/672e8c11/attachment.patch>


More information about the vlc-devel mailing list