[vlc-commits] Implement ACCESS_GET_SIZE

Tobias Güntner git at videolan.org
Sat Nov 15 22:00:59 CET 2014


vlc/vlc-2.2 | branch: master | Tobias Güntner <fatbull at web.de> | Sat Nov 15 21:39:47 2014 +0100| [5efafe2debd2bb7264c3acd0392ebc504e7b6dea] | committer: Rémi Denis-Courmont

Implement ACCESS_GET_SIZE

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit eb588176daa8160191c9ba0a1cf2d80c2beb4f54)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=5efafe2debd2bb7264c3acd0392ebc504e7b6dea
---

 modules/access/vdr.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 20ecba7..d2686c6 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -272,6 +272,10 @@ static int Control( access_t *p_access, int i_query, va_list args )
             *va_arg( args, bool* ) = true;
             break;
 
+        case ACCESS_GET_SIZE:
+            *va_arg( args, uint64_t* ) = p_sys->size;
+            break;
+
         case ACCESS_GET_PTS_DELAY:
             pi64 = va_arg( args, int64_t * );
             *pi64 = INT64_C(1000)



More information about the vlc-commits mailing list