]> git.sesse.net Git - vlc/blobdiff - include/vlc_es_out.h
Added es_out_ControlModifyPcrSystem to synchronize the input clock on an external...
[vlc] / include / vlc_es_out.h
index 357b0ad371ba76b180058cadaf7e86f91c892e3f..78d31680b939c88d9490fd45b0dcb782bccc3c77 100644 (file)
@@ -87,6 +87,7 @@ enum es_out_query_e
 
     /* PCR system clock manipulation for external clock synchronization */
     ES_OUT_GET_PCR_SYSTEM, /* arg1=mtime_t * res=can fail */
+    ES_OUT_MODIFY_PCR_SYSTEM, /* arg1=int is_absolute, arg2=mtime_t, res=can fail */
 
     /* First value usable for private control */
     ES_OUT_PRIVATE_START = 0x10000,
@@ -152,6 +153,10 @@ 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 );
 }
+static inline int es_out_ControlModifyPcrSystem( es_out_t *out, bool b_absolute, mtime_t i_system )
+{
+    return es_out_Control( out, ES_OUT_MODIFY_PCR_SYSTEM, b_absolute, i_system );
+}
 
 /**
  * @}