[vlc-commits] stream: add STREAM_CAN_PAUSE and STREAM_CAN_CONTROL_PACE

Rémi Denis-Courmont git at videolan.org
Tue Apr 16 19:20:00 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 16 20:00:40 2013 +0300| [e4de05b7fd303c9a155d474ae4ab8751685c9c42] | committer: Rémi Denis-Courmont

stream: add STREAM_CAN_PAUSE and STREAM_CAN_CONTROL_PACE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4de05b7fd303c9a155d474ae4ab8751685c9c42
---

 include/vlc_stream.h |    2 ++
 src/input/stream.c   |    5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/include/vlc_stream.h b/include/vlc_stream.h
index 8281837..c85f8e5 100644
--- a/include/vlc_stream.h
+++ b/include/vlc_stream.h
@@ -90,6 +90,8 @@ enum stream_query_e
     /* capabilities */
     STREAM_CAN_SEEK,            /**< arg1= bool *   res=cannot fail*/
     STREAM_CAN_FASTSEEK,        /**< arg1= bool *   res=cannot fail*/
+    STREAM_CAN_PAUSE,           /**< arg1= bool *   res=cannot fail*/
+    STREAM_CAN_CONTROL_PACE,    /**< arg1= bool *   res=cannot fail*/
 
     /* */
     STREAM_SET_POSITION,        /**< arg1= uint64_t       res=can fail  */
diff --git a/src/input/stream.c b/src/input/stream.c
index 16965ba..76de575 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -568,9 +568,12 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
 
         case STREAM_CAN_SEEK:
             return access_vaControl( p_access, ACCESS_CAN_SEEK, args );
-
         case STREAM_CAN_FASTSEEK:
             return access_vaControl( p_access, ACCESS_CAN_FASTSEEK, args );
+        case STREAM_CAN_PAUSE:
+            return access_vaControl( p_access, ACCESS_CAN_PAUSE, args );
+        case STREAM_CAN_CONTROL_PACE:
+            return access_vaControl( p_access, ACCESS_CAN_CONTROL_PACE, args );
 
         case STREAM_GET_POSITION:
             pi_64 = va_arg( args, uint64_t * );



More information about the vlc-commits mailing list