]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fixed thinkos in documentation (filter example)
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Mar 2004 15:15:21 +0000 (15:15 +0000)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Mar 2004 15:15:21 +0000 (15:15 +0000)
src/seq/seq.c

index c4754b5e2c76715f8a90347a385d8591b6ad8765..8dfaf48254b04dfb231e9d05a57693ac7f3bddfe 100644 (file)
@@ -763,15 +763,13 @@ after some modification, will appear as following:
 \code
 void event_filter(snd_seq_t *seq, snd_seq_event_t *ev)
 {
-        snd_seq_event_t *ev;
-
         while (snd_seq_event_input(seq, &ev) >= 0) {
                 //.. modify input event ..
 
                 snd_seq_ev_set_source(ev, my_port);
                 snd_seq_ev_set_subs(ev);
                 snd_seq_ev_set_direct(ev);
-                snd_seq_event_output(seq, &ev);
+                snd_seq_event_output(seq, ev);
                 snd_seq_drain_output(seq);
         }
 }