# HG changeset patch # User yaz # Date 1181194494 25200 # Node ID 5f3b30860b48028b0dc1229bf1f1a6bfc513eff9 # Parent 1f3c936b4e0ba6b7872a0fbe50d44d85f6e962a3 [svn] - add playback->playing code. - if tta file doesn't have metadata, file name will be used as the title. diff -r 1f3c936b4e0b -r 5f3b30860b48 ChangeLog --- a/ChangeLog Wed Jun 06 21:44:52 2007 -0700 +++ b/ChangeLog Wed Jun 06 22:34:54 2007 -0700 @@ -1,3 +1,11 @@ +2007-06-07 04:44:52 +0000 Yoshiki Yazawa + revision [2494] + - make wma plugin work again. + + trunk/src/wma/wma.c | 2 ++ + 1 file changed, 2 insertions(+) + + 2007-06-07 04:35:26 +0000 Yoshiki Yazawa revision [2492] - make aac plugin work again. diff -r 1f3c936b4e0b -r 5f3b30860b48 src/tta/libtta.c --- a/src/tta/libtta.c Wed Jun 06 21:44:52 2007 -0700 +++ b/src/tta/libtta.c Wed Jun 06 22:34:54 2007 -0700 @@ -178,7 +178,12 @@ static gchar * get_song_title(TitleInput *tuple) { - return xmms_get_titlestring(xmms_get_gentitle_format(), tuple); + gchar *title = xmms_get_titlestring(xmms_get_gentitle_format(), tuple); + if(!title || !strcmp(title, "")) { + g_free(title); + title = g_strdup(tuple->file_name); + } + return title; } static void @@ -186,8 +191,8 @@ { TitleInput *tuple; - *length = -1; - *title = NULL; + *length = -1; + *title = NULL; if ((tuple = get_song_tuple(filename)) != NULL) { *length = tuple->length; @@ -509,6 +514,7 @@ g_free (title); playing = TRUE; + playback->playing = 1; seek_position = -1; read_samples = -1; @@ -527,6 +533,7 @@ if (playing) { playing = FALSE; + playback->playing = 0; pthread_join (decode_thread, NULL); playback->output->close_audio (); close_tta_file (&info);