From 0b6ee4f4b6a4445ab1a0aa1af0f7a5d3da9a97fa Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 16 Jun 2007 03:42:14 +0000 Subject: [PATCH] gst/playback/gstqueue2.c: Fix compile error from ignored return value. Original commit message from CVS: * gst/playback/gstqueue2.c: Fix compile error from ignored return value. --- gst/playback/gstqueue2.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/playback/gstqueue2.c b/gst/playback/gstqueue2.c index a221e68..285decc 100644 --- a/gst/playback/gstqueue2.c +++ b/gst/playback/gstqueue2.c @@ -767,13 +767,18 @@ gst_queue_write_buffer_to_file (GstQueue * queue, GstBuffer * buffer) { guint size; guint8 *data; + int ret; fseek (queue->temp_file, queue->writing_pos, SEEK_SET); data = GST_BUFFER_DATA (buffer); size = GST_BUFFER_SIZE (buffer); - fwrite (data, 1, size, queue->temp_file); + ret = fwrite (data, 1, size, queue->temp_file); + if (ret < size) { + /* FIXME do something useful here */ + GST_ERROR_OBJECT (queue, "fwrite returned error"); + } queue->writing_pos += size; } -- 2.7.4