changeset 313:19efbc50055f trunk

[svn] - be more robust
author nenolod
date Mon, 27 Nov 2006 18:10:41 -0800
parents b223e71e7024
children 29e5e3b6f1b6
files ChangeLog src/aac/src/libmp4.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Nov 26 19:47:44 2006 -0800
+++ b/ChangeLog	Mon Nov 27 18:10:41 2006 -0800
@@ -1,3 +1,11 @@
+2006-11-27 03:47:44 +0000  Jerome Poulin <ticpu@ticpu.net>
+  revision [680]
+  Allow modyfing configuration before loading Paranormal, without crashing.
+  
+  trunk/src/paranormal/plugin.c |    9 ++++++++-
+  1 file changed, 8 insertions(+), 1 deletion(-)
+
+
 2006-11-26 19:45:22 +0000  William Pitcock <nenolod@nenolod.net>
   revision [678]
   - fix debian BTFS on arm
--- a/src/aac/src/libmp4.c	Sun Nov 26 19:47:44 2006 -0800
+++ b/src/aac/src/libmp4.c	Mon Nov 27 18:10:41 2006 -0800
@@ -537,6 +537,11 @@
 				buffer=NULL;
 				bufferSize=0;
 			}
+			if (buffer_playing == FALSE)
+			{
+				mp4_ip.output->close_audio();
+				return FALSE;
+			}
 			produce_audio(mp4_ip.output->written_time(),
 					   FMT_S16_NE,
 					   channels,