Re: Managing a file buffer

2007-04-09 Thread Jeremy Sanders
David Johnson wrote: > I have an application that reads video from a socket and saves it to a > file, which I then play using GStreamer. The major problem with this > approach is that the file keeps getting bigger and bigger until the disk > is full ;-) > > What I'd like to do is have a buffer, s

Re: Managing a file buffer

2007-04-09 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, David Johnson wrote: > What I'd like to do is have a buffer, say 5MB in size, which I can point > GStreamer at. So every time I write 60K to the tail of the file, I'd need to > remove 60K from the head of the file. You can't remove data from the head of a file. At least

Managing a file buffer

2007-04-09 Thread David Johnson
Hi, I have an application that reads video from a socket and saves it to a file, which I then play using GStreamer. The major problem with this approach is that the file keeps getting bigger and bigger until the disk is full ;-) What I'd like to do is have a buffer, say 5MB in size, which I can