summaryrefslogtreecommitdiff
blob: 5887cbf850e2f83bb668f8f1917bd16d116f1e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -ur alsaplayer-0.99.80.orig/input/flac/FlacPlugin.cpp alsaplayer-0.99.80/input/flac/FlacPlugin.cpp
--- alsaplayer-0.99.80.orig/input/flac/FlacPlugin.cpp	2007-10-29 23:00:16.000000000 +0200
+++ alsaplayer-0.99.80/input/flac/FlacPlugin.cpp	2009-07-20 00:19:07.000000000 +0300
@@ -239,7 +239,7 @@
     else
     {
 	// use stream name
-	char * fname = strrchr (f->name ().c_str (), '/');
+	const char * fname = strrchr (f->name ().c_str (), '/');
 	if (fname)
 	{
 	    fname++;
@@ -270,7 +270,7 @@
 	if (strncmp(name, "http://", 7) == 0) {
 		return 0.0;
 	}
-	char *ext = strrchr(name, '.');
+	const char *ext = strrchr(name, '.');
 	if (!ext)
 		return 0.0;
 	ext++;