Update of /cvsroot/alsa/alsa-kernel/core In directory sc8-pr-cvs1:/tmp/cvs-serv27175
Modified Files: pcm.c Log Message: fixed oops when device was not opened (usual situation ;-)) Index: pcm.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/pcm.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- pcm.c 19 Jan 2004 19:46:42 -0000 1.36 +++ pcm.c 20 Jan 2004 13:11:33 -0000 1.37 @@ -860,7 +860,8 @@ snd_pcm_devices[idx] = NULL; for (cidx = 0; cidx < 2; cidx++) for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) - substream->runtime->status->state = SNDRV_PCM_STATE_DISCONNECTED; + if (substream->runtime) + substream->runtime->status->state = SNDRV_PCM_STATE_DISCONNECTED; list_for_each(list, &snd_pcm_notify_list) { snd_pcm_notify_t *notify; notify = list_entry(list, snd_pcm_notify_t, list); ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog