[x264-devel] Yet another updated threaded slicetype patch (v14)

Guillaume POIRIER poirierg at gmail.com
Wed Jul 1 17:49:32 CEST 2009


Hello,

On Wed, Jul 1, 2009 at 4:56 PM, Mike Kazmier <DaKaZ at zenbe.com> wrote:

> On Fri, Jun 5, 2009 at 10:17 PM "Steven Walters" <kemuri9 at gmail.com>
> wrote:
> >yeah it's no problem to help out, would like to see the patch get
> > finalized and put to use for everyone...
>
> All - with a big HOORAY to Steven for his effort in fixing the v14 patch
> for proper functionality - we are proud to submit this patch which has been
> tested on linux and windows and appears to be functioning properly.  We
> would love to get this committed.
>
> Thanks


I had a quick look at it, and these lines hurt my eyes:

+#ifndef USE_USLEEP
+            x264_pthread_cond_wait( &h->lookahead->ofbuf.cv_empty,
&h->lookahead->ofbuf.mutex );
+#else
+            x264_pthread_mutex_unlock( &h->lookahead->ofbuf.mutex );
+            usleep( 100 );
+            x264_pthread_mutex_lock( &h->lookahead->ofbuf.mutex );
+#endif


You shouldn't duplicate these lines over and over again. You can probably
fix that problem by putting these changes directly in x264_pthread_cond_wait
(but I'm not certain).

Guillaume
-- 
Only a very small fraction of our DNA does anything; the rest is all
comments and ifdefs.

George Burns <http://www.brainyquote.com/quotes/authors/g/george_burns.html>
- "I would go out with women my age, but there are no women my age."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20090701/f74667fb/attachment.htm>


More information about the x264-devel mailing list