[vlc-commits] access: implement STREAM_GET_PRIVATE_BLOCK
Rémi Denis-Courmont
git at videolan.org
Tue Aug 25 20:33:18 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 25 21:10:27 2015 +0300| [daf5ccc4c2968b3cf91c24ef3c50acd9f4a129d0] | committer: Rémi Denis-Courmont
access: implement STREAM_GET_PRIVATE_BLOCK
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=daf5ccc4c2968b3cf91c24ef3c50acd9f4a129d0
---
src/input/access.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/input/access.c b/src/input/access.c
index d662922..8a42973 100644
--- a/src/input/access.c
+++ b/src/input/access.c
@@ -326,6 +326,19 @@ static int AStreamControl(stream_t *s, int cmd, va_list args)
return vlc_access_Seek(sys->access, pos);
}
+ case STREAM_GET_PRIVATE_BLOCK:
+ {
+ block_t **b = va_arg(args, block_t **);
+ bool *eof = va_arg(args, bool *);
+
+ if (access->pf_block == NULL)
+ return VLC_EGENERIC;
+
+ *b = vlc_access_Eof(access) ? NULL : vlc_access_Block(access);
+ *eof = (*b == NULL) && vlc_access_Eof(access);
+ break;
+ }
+
default:
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list