comparison libmpdemux/audio_in.c @ 7070:aaac9080b8a3

v4l capture update by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz> some silly bugs slipped through.. here is the fix
author arpi
date Thu, 22 Aug 2002 23:05:58 +0000
parents b14880a6cccb
children 13fcab6fde41
comparison
equal deleted inserted replaced
7069:21e1ab99cb21 7070:aaac9080b8a3
104 case AUDIO_IN_ALSA: 104 case AUDIO_IN_ALSA:
105 if (ai->alsa.device) free(ai->alsa.device); 105 if (ai->alsa.device) free(ai->alsa.device);
106 ai->alsa.device = strdup(device); 106 ai->alsa.device = strdup(device);
107 /* mplayer cannot handle colons in arguments */ 107 /* mplayer cannot handle colons in arguments */
108 for (i = 0; i < strlen(ai->alsa.device); i++) { 108 for (i = 0; i < strlen(ai->alsa.device); i++) {
109 if (ai->alsa.device[i] == ',') ai->alsa.device[i] = ':'; 109 if (ai->alsa.device[i] == '.') ai->alsa.device[i] = ':';
110 } 110 }
111 return 0; 111 return 0;
112 #endif 112 #endif
113 case AUDIO_IN_OSS: 113 case AUDIO_IN_OSS:
114 if (ai->oss.device) free(ai->oss.device); 114 if (ai->oss.device) free(ai->oss.device);