Commit ded15bf1 authored by Warren Dukes's avatar Warren Dukes

fix avuton's mp4 compile bug

git-svn-id: https://svn.musicpd.org/mpd/trunk@1253 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 4de1a41c
...@@ -322,7 +322,7 @@ MpdTag * mp4DataDup(char * file, int * mp4MetadataFound) { ...@@ -322,7 +322,7 @@ MpdTag * mp4DataDup(char * file, int * mp4MetadataFound) {
*mp4MetadataFound = 0; *mp4MetadataFound = 0;
if(openInputStream(file) < 0) return NULL; if(openInputStream(&inStream, file) < 0) return NULL;
cb = malloc(sizeof(mp4ff_callback_t)); cb = malloc(sizeof(mp4ff_callback_t));
cb->read = mp4_inputStreamReadCallback; cb->read = mp4_inputStreamReadCallback;
......
...@@ -687,6 +687,9 @@ int playPlaylist(FILE * fp, int song, int stopOnError) { ...@@ -687,6 +687,9 @@ int playPlaylist(FILE * fp, int song, int stopOnError) {
clearPlayerError(); clearPlayerError();
if(song==-1) { if(song==-1) {
if(playlist_state == PLAYLIST_STATE_PLAY) {
return playerSetPause(fp, 0);
}
if(playlist.current >= 0 && playlist.current < playlist.length) if(playlist.current >= 0 && playlist.current < playlist.length)
{ {
i = playlist.current; i = playlist.current;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment