[vlc-devel] commit: Implement DEMUX_GET_TIME in screen access. (Antoine Cellerier )

git version control git at videolan.org
Sat Jan 3 22:50:08 CET 2009


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sat Jan  3 22:17:58 2009 +0100| [85174a2065bf5a6a48dbe29d3c6e08d21be72f09] | committer: Antoine Cellerier 

Implement DEMUX_GET_TIME in screen access.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85174a2065bf5a6a48dbe29d3c6e08d21be72f09
---

 modules/access/screen/screen.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/access/screen/screen.c b/modules/access/screen/screen.c
index 3b423a8..560a152 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -307,6 +307,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             *pi64 = (int64_t)var_GetInteger( p_demux, "screen-caching" ) *1000;
             return VLC_SUCCESS;
 
+        case DEMUX_GET_TIME:
+            pi64 = (int64_t*)va_arg( args, int64_t * );
+            *pi64 = mdate();
+            return VLC_SUCCESS;
+
         /* TODO implement others */
         default:
             return VLC_EGENERIC;




More information about the vlc-devel mailing list