gst/elements/gstfilesink.c: Don't use NULL pointers.

Original commit message from CVS:
* gst/elements/gstfilesink.c: (gst_file_sink_close_file):
Don't use NULL pointers.
This commit is contained in:
Wim Taymans 2005-10-06 13:24:28 +00:00
parent 93c6b88036
commit cb64b2a586
3 changed files with 15 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2005-10-06 Wim Taymans <wim@fluendo.com>
* gst/elements/gstfilesink.c: (gst_file_sink_close_file):
Don't use NULL pointers.
2005-10-06 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gst_private.h:

View file

@ -261,10 +261,12 @@ gst_file_sink_open_file (GstFileSink * sink)
static void
gst_file_sink_close_file (GstFileSink * sink)
{
if (sink->file) {
if (fclose (sink->file) != 0) {
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
}
}
}
static gboolean

View file

@ -261,10 +261,12 @@ gst_file_sink_open_file (GstFileSink * sink)
static void
gst_file_sink_close_file (GstFileSink * sink)
{
if (sink->file) {
if (fclose (sink->file) != 0) {
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
}
}
}
static gboolean