[vlc-devel] [RFC PATCH 1/4] demux: add DEMUX_GET_NPT
Thomas Guillem
thomas at gllm.fr
Tue Sep 10 18:33:04 CEST 2019
---
include/vlc_demux.h | 1 +
src/input/demux.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/vlc_demux.h b/include/vlc_demux.h
index ba06d9162e..0cea2232a1 100644
--- a/include/vlc_demux.h
+++ b/include/vlc_demux.h
@@ -178,6 +178,7 @@ enum demux_query_e
DEMUX_GET_LENGTH, /* arg1= vlc_tick_t * res= */
DEMUX_GET_TIME, /* arg1= vlc_tick_t * res= */
DEMUX_SET_TIME, /* arg1= vlc_tick_t arg2= bool b_precise res=can fail */
+ DEMUX_GET_NPT, /* arg1= vlc_tick_t * res= can fail, in that case VLC_TICK_0 will be used as NPT */
/**
* \todo Document
diff --git a/src/input/demux.c b/src/input/demux.c
index 02365c847d..08bfc0c3c2 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -338,7 +338,8 @@ int demux_vaControlHelper( stream_t *s,
return VLC_SUCCESS;
}
return VLC_EGENERIC;
-
+ case DEMUX_GET_NPT:
+ return VLC_EGENERIC;
case DEMUX_SET_POSITION:
f = va_arg( args, double );
--
2.20.1
More information about the vlc-devel
mailing list