[xiph-commits] r3040 - liboggplay/trunk/src/liboggplay
tahn at svn.annodex.net
tahn at svn.annodex.net
Sun Jun 24 20:51:27 PDT 2007
Author: tahn
Date: 2007-06-24 20:51:27 -0700 (Sun, 24 Jun 2007)
New Revision: 3040
Modified:
liboggplay/trunk/src/liboggplay/oggplay_buffer.c
Log:
Guard against a NULL frame when releasing buffers.
Modified: liboggplay/trunk/src/liboggplay/oggplay_buffer.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_buffer.c 2007-06-25 03:29:38 UTC (rev 3039)
+++ liboggplay/trunk/src/liboggplay/oggplay_buffer.c 2007-06-25 03:51:27 UTC (rev 3040)
@@ -253,6 +253,10 @@
return E_OGGPLAY_BAD_OGGPLAY;
}
+ if (track_info == NULL) {
+ return E_OGGPLAY_OK;
+ }
+
buffer = (OggPlayBuffer *)track_info[0]->buffer;
if (buffer == NULL) {
More information about the commits
mailing list