Commit 26a7c80c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

imem: return an error when file is unknown

Due to backward command line compatibility, zero size is not possible
with the old imem. Consider using the proper LibVLC API.
parent d1ed9f95
...@@ -346,7 +346,7 @@ static int ControlAccess(access_t *access, int i_query, va_list args) ...@@ -346,7 +346,7 @@ static int ControlAccess(access_t *access, int i_query, va_list args)
case ACCESS_GET_SIZE: { case ACCESS_GET_SIZE: {
uint64_t *s = va_arg(args, uint64_t *); uint64_t *s = va_arg(args, uint64_t *);
*s = var_InheritInteger(access, "imem-size"); *s = var_InheritInteger(access, "imem-size");
return VLC_SUCCESS; return *s ? VLC_SUCCESS : VLC_EGENERIC;
} }
case ACCESS_GET_PTS_DELAY: { case ACCESS_GET_PTS_DELAY: {
int64_t *delay = va_arg(args, int64_t *); int64_t *delay = va_arg(args, int64_t *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment