projects
/
platform
/
upstream
/
gst-editing-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de54e7a
)
fwrite doesn't return the number of bytes written. check that fwrite is
author
Brandon Lewis
<brandon@collabora.co.uk>
Fri, 16 Jul 2010 16:41:02 +0000
(18:41 +0200)
committer
Brandon Lewis
<brandon@collabora.co.uk>
Fri, 16 Jul 2010 16:54:49 +0000
(18:54 +0200)
non-zero and that ferror() isn't set instead.
ges/ges-timeline-pipeline.c
patch
|
blob
|
history
diff --git
a/ges/ges-timeline-pipeline.c
b/ges/ges-timeline-pipeline.c
index
d7cd704
..
6d7c141
100644
(file)
--- a/
ges/ges-timeline-pipeline.c
+++ b/
ges/ges-timeline-pipeline.c
@@
-777,9
+777,9
@@
ges_timeline_pipeline_save_thumbnail (GESTimelinePipeline * self, int width, int
}
fp = fopen (location, "w+");
- if (fwrite (GST_BUFFER_DATA (b), GST_BUFFER_SIZE (b), 1,
- fp) != GST_BUFFER_SIZE (b))
+ if (!fwrite (GST_BUFFER_DATA (b), GST_BUFFER_SIZE (b), 1, fp) || ferror (fp)) {
res = FALSE;
+ }
fclose (fp);
gst_caps_unref (caps);