]> git.sesse.net Git - vlc/commitdiff
Export ES_OUT_GET_EMPTY which is needed for interactive video.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 11 Mar 2009 22:20:26 +0000 (23:20 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 11 Mar 2009 22:35:49 +0000 (23:35 +0100)
include/vlc_es_out.h
src/input/es_out.h

index 1ee6229fde2ec033f173731c1985c9c0e73a9bcb..043e5579d86e61b3c9be1eae090cd894f4b0cc0c 100644 (file)
@@ -83,6 +83,13 @@ enum es_out_query_e
     /* Set scrambled state for one es */
     ES_OUT_SET_ES_SCRAMBLED_STATE,  /* arg1=int i_group arg2=es_out_id_t* */
 
+    /* Stop any buffering being done, and ask if es_out has no more data to
+     * play.
+     * It will not block and so MUST be used carrefully. The only good reason
+     * is for interactive playback (like for DVD menu).
+     * XXX You SHALL call ES_OUT_RESET_PCR before any other es_out_Control/Send calls. */
+    ES_OUT_GET_EMPTY,       /* arg1=bool*   res=cannot fail */
+
     /* First value usable for private control */
     ES_OUT_PRIVATE_START = 0x10000,
 };
index 62818ff68036bfd35e7e85374105f3f5ddc014f6..b9f0ce944a2900f0e6c9e1226d0e18a3e8ee5094 100644 (file)
@@ -51,9 +51,6 @@ enum es_out_query_private_e
     /* Get buffering state */
     ES_OUT_GET_BUFFERING,                           /* arg1=bool*               res=cannot fail */
 
-    /* Check if es_out has still data to play */
-    ES_OUT_GET_EMPTY,                               /* arg1=bool*               res=cannot fail */
-
     /* Set delay for a ES category */
     ES_OUT_SET_DELAY,                               /* arg1=es_category_e,      res=can fail */