Notify the user if no input plugin recognizes the current file;

bump PKGNAME
This commit is contained in:
robert 2006-03-13 14:30:43 +00:00
parent 783b5bef30
commit 5f3ff26204
2 changed files with 32 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.46 2005/12/28 21:31:15 naddy Exp $
# $OpenBSD: Makefile,v 1.47 2006/03/13 14:30:43 robert Exp $
COMMENT= "Multimedia player for the X Window System"
COMMENT-esd= "Esound output plugin for XMMS"
@ -8,7 +8,7 @@ COMMENT-mp3= "MP3 input plugin for XMMS"
VERSION= 1.2.10
DISTNAME= xmms-${VERSION}
PKGNAME= xmms-${VERSION}p6
PKGNAME= xmms-${VERSION}p7
PKGNAME-esd= xmms-esd-${VERSION}p5
PKGNAME-vorbis= xmms-vorbis-${VERSION}p5
PKGNAME-mikmod= xmms-mikmod-${VERSION}p5

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-xmms_input_c,v 1.1 2006/03/13 14:30:43 robert Exp $
--- xmms/input.c.orig Mon Mar 13 00:18:51 2006
+++ xmms/input.c Mon Mar 13 00:39:00 2006
@@ -245,6 +245,8 @@
{
GList *node;
InputPlugin *ip;
+
+ char *text;
node = get_input_list();
if (get_current_output_plugin() == NULL)
@@ -271,9 +273,16 @@
node = node->next;
}
/* We set the playing flag even if no inputplugin
- recognizes the file. This way we are sure it will be skipped. */
+ recognizes the file. This way we are sure it will be skipped.
+ We also notify the user that there has been no input plugin
+ installed for the current file. */
ip_data->playing = TRUE;
set_current_input_plugin(NULL);
+ text = g_strdup_printf(_("No input plugin has been installed for %s"),
+ g_basename(filename));
+ xmms_show_message(_("No input plugin"),
+ _(text),
+ _("Ok"), FALSE, NULL, NULL);
}
void input_seek(int time)