Don't unref seek event twice in case where fflush() fails
authorTim-Philipp Müller <tim@centricular.net>
Mon, 24 Jan 2005 11:04:37 +0000 (11:04 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 24 Jan 2005 11:04:37 +0000 (11:04 +0000)
Original commit message from CVS:
Don't unref seek event twice in case where fflush() fails

ChangeLog
gst/elements/gstfilesink.c
plugins/elements/gstfilesink.c

index 01e8578..715ca6b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-24  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/elements/gstfilesink.c: (gst_filesink_handle_event):
+         Don't unref seek event twice when fflush() fails
+         
 2005-01-22  David Schleef  <ds@schleef.org>
 
        * configure.ac: Add --disable-valgrind. (partial fix for #164890)
index 992febf..a575d5a 100644 (file)
@@ -363,6 +363,7 @@ gst_filesink_handle_event (GstPad * pad, GstEvent * event)
           GST_ELEMENT_ERROR (filesink, RESOURCE, WRITE,
               (_("Error while writing to file \"%s\"."), filesink->filename),
               GST_ERROR_SYSTEM);
+          return FALSE;
         }
       }
 
index 992febf..a575d5a 100644 (file)
@@ -363,6 +363,7 @@ gst_filesink_handle_event (GstPad * pad, GstEvent * event)
           GST_ELEMENT_ERROR (filesink, RESOURCE, WRITE,
               (_("Error while writing to file \"%s\"."), filesink->filename),
               GST_ERROR_SYSTEM);
+          return FALSE;
         }
       }