mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 13:21:16 +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>
|
2005-10-06 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst/gst_private.h:
|
* gst/gst_private.h:
|
||||||
|
|
|
@ -261,9 +261,11 @@ gst_file_sink_open_file (GstFileSink * sink)
|
||||||
static void
|
static void
|
||||||
gst_file_sink_close_file (GstFileSink * sink)
|
gst_file_sink_close_file (GstFileSink * sink)
|
||||||
{
|
{
|
||||||
if (fclose (sink->file) != 0) {
|
if (sink->file) {
|
||||||
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
|
if (fclose (sink->file) != 0) {
|
||||||
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
|
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
|
static void
|
||||||
gst_file_sink_close_file (GstFileSink * sink)
|
gst_file_sink_close_file (GstFileSink * sink)
|
||||||
{
|
{
|
||||||
if (fclose (sink->file) != 0) {
|
if (sink->file) {
|
||||||
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
|
if (fclose (sink->file) != 0) {
|
||||||
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
|
GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE,
|
||||||
|
(_("Error closing file \"%s\"."), sink->filename), GST_ERROR_SYSTEM);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue