[xiph-commits] r3822 - libsydneyaudio/trunk/src

conrad at svn.annodex.net conrad at svn.annodex.net
Mon Dec 8 04:02:29 PST 2008


Author: conrad
Date: 2008-12-08 04:02:29 -0800 (Mon, 08 Dec 2008)
New Revision: 3822

Modified:
   libsydneyaudio/trunk/src/sydney_audio_sunaudio.c
Log:
Apply patch from Brian Lu for Mozilla bug 468260, Annodex ticket:442


Modified: libsydneyaudio/trunk/src/sydney_audio_sunaudio.c
===================================================================
--- libsydneyaudio/trunk/src/sydney_audio_sunaudio.c	2008-12-08 06:41:24 UTC (rev 3821)
+++ libsydneyaudio/trunk/src/sydney_audio_sunaudio.c	2008-12-08 12:02:29 UTC (rev 3822)
@@ -293,11 +293,12 @@
   */
   result = SA_SUCCESS;
   buf = new_buffer(nbytes);
-  memcpy(buf->data,data, nbytes);
 
-  if ( buf == NULL)
+  if (buf == NULL)
     return SA_ERROR_OOM;
 
+  memcpy(buf->data,data, nbytes);
+
   pthread_mutex_lock(&s->mutex);
   if (!s->bl_head)
     s->bl_head = buf;



More information about the commits mailing list