mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
This is probably cleaner
Original commit message from CVS: This is probably cleaner
This commit is contained in:
parent
ceb8481f00
commit
eaa783598a
2 changed files with 6 additions and 2 deletions
|
@ -222,7 +222,8 @@ gst_disksink_open_file (GstDiskSink *sink)
|
|||
/* open the file */
|
||||
if (!gst_disksink_getcurrentfilename(sink))
|
||||
{
|
||||
gst_element_error(GST_ELEMENT(sink), "Out of files");
|
||||
/* Out of files */
|
||||
gst_element_set_eos(GST_ELEMENT(sink));
|
||||
return FALSE;
|
||||
}
|
||||
sink->file = fopen (gst_disksink_getcurrentfilename(sink), "w");
|
||||
|
@ -359,6 +360,7 @@ gst_disksink_chain (GstPad *pad, GstBuffer *buf)
|
|||
}
|
||||
}
|
||||
disksink->data_written += GST_BUFFER_SIZE(buf);
|
||||
|
||||
gst_buffer_unref (buf);
|
||||
|
||||
g_signal_emit (G_OBJECT (disksink), gst_disksink_signals[SIGNAL_HANDOFF], 0,
|
||||
|
|
|
@ -222,7 +222,8 @@ gst_disksink_open_file (GstDiskSink *sink)
|
|||
/* open the file */
|
||||
if (!gst_disksink_getcurrentfilename(sink))
|
||||
{
|
||||
gst_element_error(GST_ELEMENT(sink), "Out of files");
|
||||
/* Out of files */
|
||||
gst_element_set_eos(GST_ELEMENT(sink));
|
||||
return FALSE;
|
||||
}
|
||||
sink->file = fopen (gst_disksink_getcurrentfilename(sink), "w");
|
||||
|
@ -359,6 +360,7 @@ gst_disksink_chain (GstPad *pad, GstBuffer *buf)
|
|||
}
|
||||
}
|
||||
disksink->data_written += GST_BUFFER_SIZE(buf);
|
||||
|
||||
gst_buffer_unref (buf);
|
||||
|
||||
g_signal_emit (G_OBJECT (disksink), gst_disksink_signals[SIGNAL_HANDOFF], 0,
|
||||
|
|
Loading…
Reference in a new issue