projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
924acf5
)
filesink: please gcc (avoid a warn_unused_result warning)
author
Alessandro Decina
<alessandro.d@gmail.com>
Tue, 27 Aug 2013 07:31:22 +0000
(09:31 +0200)
committer
Alessandro Decina
<alessandro.d@gmail.com>
Tue, 27 Aug 2013 07:31:22 +0000
(09:31 +0200)
plugins/elements/gstfilesink.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstfilesink.c
b/plugins/elements/gstfilesink.c
index
b59d72f
..
470ad5e
100644
(file)
--- a/
plugins/elements/gstfilesink.c
+++ b/
plugins/elements/gstfilesink.c
@@
-590,7
+590,8
@@
gst_file_sink_event (GstBaseSink * sink, GstEvent * event)
case GST_EVENT_FLUSH_STOP:
if (filesink->current_pos != 0 && filesink->seekable) {
gst_file_sink_do_seek (filesink, 0);
- ftruncate (fileno (filesink->file), 0);
+ if (ftruncate (fileno (filesink->file), 0))
+ goto flush_failed;
}
break;
case GST_EVENT_EOS: