changeset 1167:f22b4eb572fb trunk

[svn] - add playback->playing = 0 where buffer_playing = FALSE is done. without this, playback_get_time() would be confused and playback wouldn't advance in playlist.
author yaz
date Thu, 07 Jun 2007 00:05:17 -0700
parents 4bd7e72a6605
children 940b7ded5756
files ChangeLog src/aac/src/libmp4.c
diffstat 2 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jun 06 22:58:18 2007 -0700
+++ b/ChangeLog	Thu Jun 07 00:05:17 2007 -0700
@@ -1,3 +1,11 @@
+2007-06-07 05:58:18 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [2498]
+  - handle metadata in better way.
+  
+  trunk/src/tta/libtta.c |   34 +++++++++++++++++++++-------------
+  1 file changed, 21 insertions(+), 13 deletions(-)
+
+
 2007-06-07 05:34:54 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [2496]
   - add playback->playing code.
--- a/src/aac/src/libmp4.c	Wed Jun 06 22:58:18 2007 -0700
+++ b/src/aac/src/libmp4.c	Thu Jun 07 00:05:17 2007 -0700
@@ -66,6 +66,7 @@
     .get_song_tuple = mp4_get_song_tuple,
     .is_our_file_from_vfs = mp4_is_our_fd,
     .vfs_extensions = fmts,
+//    .get_time = mp4_get_time,
 };
 
 InputPlugin *mp4_iplist[] = { &mp4_ip, NULL };
@@ -594,6 +595,7 @@
 
             g_static_mutex_lock(&mutex);
             buffer_playing = FALSE;
+            playback->playing = 0;
             g_static_mutex_unlock(&mutex);
             g_thread_exit(NULL);
 
@@ -640,7 +642,7 @@
         }
         if (buffer_playing == FALSE)
         {
-                playback->output->close_audio();
+            playback->output->close_audio();
             return FALSE;
         }
         produce_audio(playback->output->written_time(),
@@ -678,6 +680,7 @@
         g_print("AAC: Open Decoder Error\n");
         vfs_fclose(file);
         buffer_playing = FALSE;
+        playback->playing = 0;
         g_static_mutex_unlock(&mutex);
         g_thread_exit(NULL);
     }
@@ -685,6 +688,7 @@
         g_print("AAC: Error reading file\n");
         vfs_fclose(file);
         buffer_playing = FALSE;
+        playback->playing = 0;
         faacDecClose(decoder);
         g_static_mutex_unlock(&mutex);
         g_thread_exit(NULL);
@@ -734,6 +738,7 @@
         playback->output->close_audio();
         g_free(xmmstitle);
         buffer_playing = FALSE;
+        playback->playing = 0;
         g_static_mutex_unlock(&mutex);
         g_thread_exit(NULL);
     }
@@ -820,12 +825,14 @@
     playback->output->buffer_free();
     playback->output->close_audio();
     buffer_playing = FALSE;
+    playback->playing = 0;
     faacDecClose(decoder);
     g_free(xmmstitle);
     vfs_fclose(file);
     seekPosition = -1;
 
     buffer_playing = FALSE;
+    playback->playing = 0;
     g_static_mutex_unlock(&mutex);
     g_thread_exit(NULL);
 }