Commit cca4ec23 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http filters: pause not implemented, pace control not supported

Also add missing STREAM_CAN_FASTSEEK to HTTP live.
parent 2c1731e7
...@@ -247,6 +247,11 @@ static int Control (stream_t *p_stream, int i_query, va_list args) ...@@ -247,6 +247,11 @@ static int Control (stream_t *p_stream, int i_query, va_list args)
/*TODO Support Seek */ /*TODO Support Seek */
*(va_arg (args, bool *)) = SEEK; *(va_arg (args, bool *)) = SEEK;
break; break;
case STREAM_CAN_PAUSE:
case STREAM_CAN_CONTROL_PACE:
*(va_arg (args, bool *)) = false; /* TODO */
break;
case STREAM_GET_POSITION: case STREAM_GET_POSITION:
*(va_arg (args, uint64_t *)) = p_sys->position; *(va_arg (args, uint64_t *)) = p_sys->position;
break; break;
......
...@@ -2493,6 +2493,11 @@ static int Control(stream_t *s, int i_query, va_list args) ...@@ -2493,6 +2493,11 @@ static int Control(stream_t *s, int i_query, va_list args)
case STREAM_CAN_SEEK: case STREAM_CAN_SEEK:
*(va_arg (args, bool *)) = hls_MaySeek(s); *(va_arg (args, bool *)) = hls_MaySeek(s);
break; 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: case STREAM_GET_POSITION:
*(va_arg (args, uint64_t *)) = p_sys->playback.offset; *(va_arg (args, uint64_t *)) = p_sys->playback.offset;
break; break;
......
...@@ -738,6 +738,8 @@ static int Control( stream_t *s, int i_query, va_list args ) ...@@ -738,6 +738,8 @@ static int Control( stream_t *s, int i_query, va_list args )
*(va_arg( args, bool * )) = true; *(va_arg( args, bool * )) = true;
break; break;
case STREAM_CAN_FASTSEEK: case STREAM_CAN_FASTSEEK:
case STREAM_CAN_PAUSE: /* TODO */
case STREAM_CAN_CONTROL_PACE:
*(va_arg( args, bool * )) = false; *(va_arg( args, bool * )) = false;
break; break;
case STREAM_GET_POSITION: case STREAM_GET_POSITION:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment