X-Git-Url: https://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/05517222961009dad661d1ffc7ad04ee50023c7c..fccbcc62415f747ae9e1bb03809e92aebead4370:/media-sound/mpc/files/mpc-0.15-playid.patch diff --git a/media-sound/mpc/files/mpc-0.15-playid.patch b/media-sound/mpc/files/mpc-0.15-playid.patch new file mode 100644 index 0000000..6c83dcb --- /dev/null +++ b/media-sound/mpc/files/mpc-0.15-playid.patch @@ -0,0 +1,55 @@ +diff --git a/src/command.c b/src/command.c +index 2140173..aad82cc 100644 +--- a/src/command.c ++++ b/src/command.c +@@ -335,6 +335,26 @@ int cmd_play ( int argc, char ** argv, mpd_Connection * conn ) + return 1; + } + ++int cmd_playid ( int argc, char ** argv, mpd_Connection * conn ) ++{ ++ int song; ++ int i; ++ ++ if(0==argc) song = MPD_PLAY_AT_BEGINNING; ++ else { ++ for(i=0;i", "Remove a song from the current playlist"}, + {"play", 0, -1, 2, cmd_play, "[]", "Start playing at (default: 1)"}, ++ {"playid", 0, -1, 2, cmd_playid, "[]", "Start playing at track "}, + {"next", 0, 0, 0, cmd_next, "", "Play the next song in the current playlist"}, + {"prev", 0, 0, 0, cmd_prev, "", "Play the previous song in the current playlist"}, + {"pause", 0, 0, 0, cmd_pause, "", "Pauses the currently playing song"},