mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,9 @@ gst_fopen (const gchar * filename, const gchar * mode, gboolean o_sync)
|
||||||
|
|
||||||
fd = open (filename, flags, 0666);
|
fd = open (filename, flags, 0666);
|
||||||
|
|
||||||
|
if (fd < 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
retval = fdopen (fd, mode);
|
retval = fdopen (fd, mode);
|
||||||
return retval;
|
return retval;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue