[gst-devel] win32 build works fine
Ronald Bultje
rbultje at ronald.bitfreak.net
Tue Jun 15 14:18:33 CEST 2004
Hi,
On Tue, 15 Jun 2004, Steve Lhomme wrote:
> > Next I didn't get 0x1000 bytes back from the read in gstfilesrc.c
> > which resulted in an unexpected end-of-stream.
> > Adding O_BINARY to the Open solved this one.
> > src->fd = open (src->filename, O_RDONLY|O_BINARY);
> > Similarly, I added "b" to "wb" in the gstfilesink.c (fopen).
>
> I'll commit that part (as soon as I verified that it works on Linux too).
Other projects (e.g. ffmpeg) appear to use ifdefs here: wb for WIN32, and
just w otherwise, for example. Same for O_BINARY, obviously. Don't know if
that's sane, but it appears to work.
Ronald
More information about the gstreamer-devel
mailing list