[vlc-devel] [PATCH] Fixed pause issue for streams without end (live cameras)

Rémi Denis-Courmont remi at remlab.net
Sun Oct 4 10:00:53 CEST 2015


Le 2015-10-02 08:53, Paulo Vitor Magacho da Silva a écrit :
> ---
>  modules/access/live555.cpp | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
> index efd66f3..9d7b90e 100644
> --- a/modules/access/live555.cpp
> +++ b/modules/access/live555.cpp
> @@ -1542,6 +1542,13 @@ static int Control( demux_t *p_demux, int
> i_query, va_list args )
>
>          /* Special for access_demux */
>          case DEMUX_CAN_PAUSE:
> +            pb = (bool*)va_arg( args, bool * );
> +            if( p_sys->rtsp )
> +                *pb = true;
> +            else
> +                *pb = false;
> +            return VLC_SUCCESS;
> +

The bug seems real, but I do not understand how that will fix it. 
p_sys->rtsp is non-NULL if there is an RTSP session, regardless of the 
stream being live/seekable.

>          case DEMUX_CAN_SEEK:
>              pb = (bool*)va_arg( args, bool * );
>              if( p_sys->rtsp && p_sys->f_npt_length > 0 )

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list