1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/audio/xmms-mailnotify/files/patch-ac
Tilman Keskinoz b229f6cd0c Continue playing music after a new mail arrived.
Submitted by:	joerg
2003-04-05 17:43:03 +00:00

27 lines
752 B
Plaintext

--- mailnotify.c.orig Mon Mar 31 16:55:38 2003
+++ mailnotify.c Mon Mar 31 16:55:52 2003
@@ -675,16 +675,18 @@
dummy = xmms_remote_get_playlist_file(mailnotify.xmms_session, saved_position);
printf(" which is %s\n", dummy);
#endif
- if(!wasplaying)
- xmms_remote_stop(mailnotify.xmms_session);
-
+ xmms_remote_stop(mailnotify.xmms_session);
xmms_remote_set_playlist_pos(mailnotify.xmms_session, saved_position);
xmms_remote_playlist_delete(mailnotify.xmms_session, afpos);
-#ifdef CONTINUE_WHERE_INTERRUPTED
if(wasplaying)
+ {
+ xmms_remote_play(mailnotify.xmms_session);
+#ifdef CONTINUE_WHERE_INTERRUPTED
xmms_remote_jump_to_time(mailnotify.xmms_session, saved_offset);
#endif
+ }
+
}
else
{