summaryrefslogtreecommitdiff
path: root/audio/emixer/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'audio/emixer/patches/patch-ad')
-rw-r--r--audio/emixer/patches/patch-ad22
1 files changed, 15 insertions, 7 deletions
diff --git a/audio/emixer/patches/patch-ad b/audio/emixer/patches/patch-ad
index 6238a722794..1cec08ae1cb 100644
--- a/audio/emixer/patches/patch-ad
+++ b/audio/emixer/patches/patch-ad
@@ -1,7 +1,7 @@
-$NetBSD: patch-ad,v 1.2 2000/04/16 03:59:32 mycroft Exp $
+$NetBSD: patch-ad,v 1.3 2001/01/07 03:10:50 wiz Exp $
---- main.c.orig Tue Jan 25 19:11:56 2000
-+++ main.c Sat Apr 15 23:51:57 2000
+--- main.c.orig Wed Jan 26 01:11:56 2000
++++ main.c
@@ -115,8 +115,6 @@
menus_active = FALSE;
@@ -282,7 +282,7 @@ $NetBSD: patch-ad,v 1.2 2000/04/16 03:59:32 mycroft Exp $
}
else if(active_channel==CHANNEL_2)
{
-@@ -904,14 +889,11 @@
+@@ -904,46 +889,53 @@
while(temp!=bHead){tracktotal++;temp=temp->fLink;}
/* display current track number and total tracks */
@@ -297,9 +297,17 @@ $NetBSD: patch-ad,v 1.2 2000/04/16 03:59:32 mycroft Exp $
while (top!=NULL)
{
-@@ -921,29 +903,34 @@
++ char *fnstart;
+ fpath=top->filePath;
+ playcount=top->playcount;
+ /*get songname from path, the songname is assumed to be
the characters after the last forward slash(/) */
- songname=strstr(strrchr(fpath,'/'),"/")+1;
+- songname=strstr(strrchr(fpath,'/'),"/")+1;
++ fnstart = strrchr(fpath,'/');
++ if (fnstart == NULL)
++ songname=fpath;
++ else
++ songname=strstr(fnstart,"/")+1;
if(current==top)
+ {
if(active_channel==CHANNEL_1)
@@ -339,7 +347,7 @@ $NetBSD: patch-ad,v 1.2 2000/04/16 03:59:32 mycroft Exp $
} /*display_listdata */
void menu_action(char *item_name)
-@@ -967,21 +954,10 @@
+@@ -967,21 +959,10 @@
void exit_prog(void)
{
reset_audio();