Allow new headers to be written - or we will never create valid second files for avimux

Original commit message from CVS:
Allow new headers to be written - or we will never create valid second files for avimux
This commit is contained in:
Ronald S. Bultje 2002-01-31 21:03:39 +00:00
parent 6db16f9677
commit 02605b1754
2 changed files with 2 additions and 2 deletions

View file

@ -345,7 +345,7 @@ gst_disksink_chain (GstPad *pad, GstBuffer *buf)
gst_pad_send_event(pad, event);
/* if the event wasn't handled, we probably need to open a new file ourselves */
if (disksink->data_written)
if ((disksink->data_written + GST_BUFFER_SIZE(buf))/(1024*1024) > disksink->maxfilesize)
{
gst_disksink_close_file(disksink);
disksink->filenum++;

View file

@ -345,7 +345,7 @@ gst_disksink_chain (GstPad *pad, GstBuffer *buf)
gst_pad_send_event(pad, event);
/* if the event wasn't handled, we probably need to open a new file ourselves */
if (disksink->data_written)
if ((disksink->data_written + GST_BUFFER_SIZE(buf))/(1024*1024) > disksink->maxfilesize)
{
gst_disksink_close_file(disksink);
disksink->filenum++;