mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
shm: Use the macro for the last error too
This commit is contained in:
parent
a533c30ab8
commit
0b99919c55
1 changed files with 2 additions and 4 deletions
|
@ -232,10 +232,8 @@ sp_writer_create (const char *path, size_t size, mode_t perms)
|
||||||
|
|
||||||
self->perms = perms;
|
self->perms = perms;
|
||||||
|
|
||||||
if (!self->shm_area) {
|
if (!self->shm_area)
|
||||||
sp_close (self);
|
RETURN_ERROR ("Could not open shm area (%d): %s", errno, strerror (errno));
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue