filesink: fix handling of non-existing paths with musl

Fixes #1194

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2341>
This commit is contained in:
Tim-Philipp Müller 2022-05-02 11:41:52 +01:00 committed by GStreamer Marge Bot
parent 89780341e8
commit 5687568144

View file

@ -153,6 +153,9 @@ gst_fopen (const gchar * filename, const gchar * mode, gboolean o_sync)
fd = open (filename, flags, 0666);
if (fd < 0)
return NULL;
retval = fdopen (fd, mode);
return retval;
#endif