filesink: fix handling of non-existing paths with musl

Fixes #1194

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2345>
This commit is contained in:
Tim-Philipp Müller 2022-05-02 11:41:52 +01:00
parent 1e55e07cb8
commit 5785322768

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