[pulseaudio-commits] r1406 - /trunk/src/utils/padsp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Nov 6 02:17:40 PST 2006
Author: ossman
Date: Mon Nov 6 11:17:39 2006
New Revision: 1406
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1406&root=3Dpulseaudio&vi=
ew=3Drev
Log:
The OSS spec is unclear what should happen when a reset is requested. Let's
have a nicer attitude and keep as much settings as possible.
Modified:
trunk/src/utils/padsp.c
Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=3D1=
406&root=3Dpulseaudio&r1=3D1405&r2=3D1406&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Mon Nov 6 11:17:39 2006
@@ -1003,12 +1003,21 @@
pa_stream_disconnect(i->play_stream);
pa_stream_unref(i->play_stream);
i->play_stream =3D NULL;
+ i->io_flags |=3D PA_IO_EVENT_INPUT;
}
=
if (i->rec_stream) {
pa_stream_disconnect(i->rec_stream);
pa_stream_unref(i->rec_stream);
i->rec_stream =3D NULL;
+ i->io_flags |=3D PA_IO_EVENT_OUTPUT;
+ }
+
+ if (i->io_event) {
+ pa_mainloop_api *api;
+
+ api =3D pa_threaded_mainloop_get_api(i->mainloop);
+ api->io_enable(i->io_event, i->io_flags);
}
}
=
@@ -1954,7 +1963,6 @@
=
free_streams(i);
dsp_flush_socket(i);
- reset_params(i);
=
i->optr_n_blocks =3D 0;
=
More information about the pulseaudio-commits
mailing list