]> git.sesse.net Git - vlc/blobdiff - include/vlc_es_out.h
Added es_out_ControlGetPcrSystem helper.
[vlc] / include / vlc_es_out.h
index 3c425ebca6ad2d117f1d53530d320cbb01a59526..357b0ad371ba76b180058cadaf7e86f91c892e3f 100644 (file)
@@ -85,6 +85,9 @@ enum es_out_query_e
     /* Set global meta data (The vlc_meta_t is not modified nor released) */
     ES_OUT_SET_META, /* arg1=const vlc_meta_t * */
 
+    /* PCR system clock manipulation for external clock synchronization */
+    ES_OUT_GET_PCR_SYSTEM, /* arg1=mtime_t * res=can fail */
+
     /* First value usable for private control */
     ES_OUT_PRIVATE_START = 0x10000,
 };
@@ -145,6 +148,11 @@ static inline int es_out_ControlSetMeta( es_out_t *out, const vlc_meta_t *p_meta
     return es_out_Control( out, ES_OUT_SET_META, p_meta );
 }
 
+static inline int es_out_ControlGetPcrSystem( es_out_t *out, mtime_t *pi_system )
+{
+    return es_out_Control( out, ES_OUT_GET_PCR_SYSTEM, pi_system );
+}
+
 /**
  * @}
  */