mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
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:
parent
93c6b88036
commit
cb64b2a586
3 changed files with 15 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -261,9 +261,11 @@ gst_file_sink_open_file (GstFileSink * sink)
|
|||
static void
|
||||
gst_file_sink_close_file (GstFileSink * sink)
|
||||
{
|
||||
if (fclose (sink->file) != 0) {
|
||||
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
|
||||
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
|
||||
if (sink->file) {
|
||||
if (fclose (sink->file) != 0) {
|
||||
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
|
||||
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -261,9 +261,11 @@ gst_file_sink_open_file (GstFileSink * sink)
|
|||
static void
|
||||
gst_file_sink_close_file (GstFileSink * sink)
|
||||
{
|
||||
if (fclose (sink->file) != 0) {
|
||||
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
|
||||
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
|
||||
if (sink->file) {
|
||||
if (fclose (sink->file) != 0) {
|
||||
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
|
||||
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue