[vlc-commits] http filters: pause not implemented, pace control not supported

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:09:07 2013 +0300| [cca4ec23128c29f56382eb99da10c8bf3473680d] | committer: Rémi Denis-Courmont

http filters: pause not implemented, pace control not supported

Also add missing STREAM_CAN_FASTSEEK to HTTP live.

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

 modules/stream_filter/dash/dash.cpp   |    5 +++++
 modules/stream_filter/httplive.c      |    5 +++++
 modules/stream_filter/smooth/smooth.c |    2 ++
 3 files changed, 12 insertions(+)

diff --git a/modules/stream_filter/dash/dash.cpp b/modules/stream_filter/dash/dash.cpp
index 142d0e3..a4012b3 100644
--- a/modules/stream_filter/dash/dash.cpp
+++ b/modules/stream_filter/dash/dash.cpp
@@ -247,6 +247,11 @@ static int  Control         (stream_t *p_stream, int i_query, va_list args)
             /*TODO Support Seek */
             *(va_arg (args, bool *)) = SEEK;
             break;
+        case STREAM_CAN_PAUSE:
+        case STREAM_CAN_CONTROL_PACE:
+            *(va_arg (args, bool *)) = false; /* TODO */
+            break;
+
         case STREAM_GET_POSITION:
             *(va_arg (args, uint64_t *)) = p_sys->position;
             break;
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 4771f79..e51c740 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -2493,6 +2493,11 @@ static int Control(stream_t *s, int i_query, va_list args)
         case STREAM_CAN_SEEK:
             *(va_arg (args, bool *)) = hls_MaySeek(s);
             break;
+        case STREAM_CAN_FASTSEEK:
+        case STREAM_CAN_PAUSE: /* TODO */
+        case STREAM_CAN_CONTROL_PACE:
+            *(va_arg (args, bool *)) = false;
+            break;
         case STREAM_GET_POSITION:
             *(va_arg (args, uint64_t *)) = p_sys->playback.offset;
             break;
diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index ef505f1..29f54fb 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -738,6 +738,8 @@ static int Control( stream_t *s, int i_query, va_list args )
             *(va_arg( args, bool * )) = true;
             break;
         case STREAM_CAN_FASTSEEK:
+        case STREAM_CAN_PAUSE: /* TODO */
+        case STREAM_CAN_CONTROL_PACE:
             *(va_arg( args, bool * )) = false;
             break;
         case STREAM_GET_POSITION:



More information about the vlc-commits mailing list