mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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:
parent
6db16f9677
commit
02605b1754
2 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue