mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
filesink: please gcc (avoid a warn_unused_result warning)
This commit is contained in:
parent
924acf5e92
commit
a2bc789de6
1 changed files with 2 additions and 1 deletions
|
@ -590,7 +590,8 @@ gst_file_sink_event (GstBaseSink * sink, GstEvent * event)
|
||||||
case GST_EVENT_FLUSH_STOP:
|
case GST_EVENT_FLUSH_STOP:
|
||||||
if (filesink->current_pos != 0 && filesink->seekable) {
|
if (filesink->current_pos != 0 && filesink->seekable) {
|
||||||
gst_file_sink_do_seek (filesink, 0);
|
gst_file_sink_do_seek (filesink, 0);
|
||||||
ftruncate (fileno (filesink->file), 0);
|
if (ftruncate (fileno (filesink->file), 0))
|
||||||
|
goto flush_failed;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
|
|
Loading…
Reference in a new issue