[MPlayer-cvslog] r35568 - trunk/libao2/ao_alsa.c

reimar subversion at mplayerhq.hu
Mon Dec 3 00:25:20 CET 2012


Author: reimar
Date: Mon Dec  3 00:25:20 2012
New Revision: 35568

Log:
Do not use strrchr when strchr works just as well.

Modified:
   trunk/libao2/ao_alsa.c

Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c	Sun Dec  2 23:02:51 2012	(r35567)
+++ trunk/libao2/ao_alsa.c	Mon Dec  3 00:25:20 2012	(r35568)
@@ -235,9 +235,9 @@ static void parse_device (char *dest, co
   char *tmp;
   memmove(dest, src, len);
   dest[len] = 0;
-  while ((tmp = strrchr(dest, '.')))
+  while ((tmp = strchr(dest, '.')))
     tmp[0] = ',';
-  while ((tmp = strrchr(dest, '=')))
+  while ((tmp = strchr(dest, '=')))
     tmp[0] = ':';
 }
 


More information about the MPlayer-cvslog mailing list