projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
filesink: fix handling of non-existing paths with musl
[platform/upstream/gstreamer.git]
/
subprojects
/
gstreamer
/
plugins
/
elements
/
gstfilesink.c
diff --git
a/subprojects/gstreamer/plugins/elements/gstfilesink.c
b/subprojects/gstreamer/plugins/elements/gstfilesink.c
index
8802c6d
..
d5808fd
100644
(file)
--- a/
subprojects/gstreamer/plugins/elements/gstfilesink.c
+++ b/
subprojects/gstreamer/plugins/elements/gstfilesink.c
@@
-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