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:
parent
89780341e8
commit
5687568144
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user