[vlc-devel] [PATCH 1/4] vlc_stream.h: add some STREAM_GET_* requests

Frédéric Yhuel fyhuel at viotech.net
Wed Apr 11 16:15:17 CEST 2012


And remove a trailing space
---
 include/vlc_stream.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/include/vlc_stream.h b/include/vlc_stream.h
index c929836..f12b908 100644
--- a/include/vlc_stream.h
+++ b/include/vlc_stream.h
@@ -102,7 +102,7 @@ enum stream_query_e
     STREAM_CONTROL_ACCESS,  /* arg1= int i_access_query, args   res: can fail
                              if access unreachable or access control answer */
 
-    /* You should update size of source if any and then update size 
+    /* You should update size of source if any and then update size
      * FIXME find a way to avoid it */
     STREAM_UPDATE_SIZE,
 
@@ -111,6 +111,12 @@ enum stream_query_e
 
     /* XXX only data read through stream_Read/Block will be recorded */
     STREAM_SET_RECORD_STATE,     /**< arg1=bool, arg2=const char *psz_ext (if arg1 is true)  res=can fail */
+
+    /* Used in Smooth Streaming */
+    STREAM_GET_TIME_SCALE, /**< arg1=uint64_t *                                    res=cannot fail */
+    STREAM_GET_ITRACKS,    /**< arg1=unsigned *  (Get the number of tracks)        res=cannot fail */
+    STREAM_GET_TRACK,      /**< arg1=uint16_t, arg2=mp4_track_t *                  res=can fail    */
+    STREAM_GET_FMT,        /**< arg1=uint16_t, arg2=uint16_t, arg3=es_format_t *   res=can fail    */
 };
 
 VLC_API int stream_Read( stream_t *s, void *p_read, int i_read );
-- 
1.7.5.4




More information about the vlc-devel mailing list