Skip to content

Commit

Permalink
Fix MP3 tag reading.
Browse files Browse the repository at this point in the history
Don't start XMMS until needed.
  • Loading branch information
cgroom committed Nov 13, 2003
1 parent 0e414c0 commit 79a90aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion gjay.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ int main( int argc, char *argv[] ) {
fprintf(stderr, "GJay strongly suggests xmms\n");
}

init_xmms();
gtk_init (&argc, &argv);

g_io_add_watch (g_io_channel_unix_new (daemon_pipe_fd),
Expand Down
3 changes: 2 additions & 1 deletion songs.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,9 @@ static gboolean get_mp3_info ( char * path,
}
}
} else {
fseek(fp, 128, SEEK_END);
fseek(fp, -128, SEEK_END);
fread(buffer, 1, 128, fp);

if (strncmp(buffer, "TAG", 3) == 0) {
is_mp3 = TRUE;
if (title) {
Expand Down

0 comments on commit 79a90aa

Please sign in to comment.