[MPlayer-cvslog] r26345 - trunk/libao2/ao_sun.c
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Feb 7 19:10:17 CET 2009
On Sat, Feb 07, 2009 at 06:01:48PM +0200, Jan Knutar wrote:
> On Monday 07 April 2008, reimar wrote:
> > Author: reimar
> > Date: Mon Apr 7 19:39:41 2008
> > New Revision: 26345
> >
> > Log:
> > reset() should not senselessly close and reopen
> > the device but instead just call flush_audio()
>
> This seems to have broken seeking on Opensolaris, from irc:
Please get someone to try this patch:
Index: libao2/ao_sun.c
===================================================================
--- libao2/ao_sun.c (revision 28469)
+++ libao2/ao_sun.c (working copy)
@@ -91,6 +91,11 @@
#elif defined(__svr4__)
ioctl(fd, I_FLUSH, FLUSHW);
#endif
+ AUDIO_INITINFO(&info);
+ info.play.samples = 0;
+ info.play.eof = 0;
+ info.play.error = 0;
+ ioctl (audio_fd, AUDIO_SETINFO, &info);
}
// convert an OSS audio format specification into a sun audio encoding
More information about the MPlayer-cvslog
mailing list