[vlc-devel] [PATCH 4/4] demux:adaptive: no need to keep the length
Francois Cartegnie
fcvlcdev at free.fr
Mon Jan 8 09:36:02 CET 2018
Le 08/01/2018 à 08:37, Steve Lhomme a écrit :
> if(Demuxer::create())
> {
> - length = VLC_TS_INVALID;
> + mtime_t length = VLC_TS_INVALID;
> if(demux_Control(p_demux, DEMUX_GET_LENGTH, &length) != VLC_SUCCESS)
> b_eof = true;
> return true;
> diff --git a/modules/demux/adaptive/plumbing/Demuxer.hpp b/modules/demux/adaptive/plumbing/Demuxer.hpp
> index 3e9b8b9182..4a962f3855 100644
> --- a/modules/demux/adaptive/plumbing/Demuxer.hpp
> +++ b/modules/demux/adaptive/plumbing/Demuxer.hpp
> @@ -76,9 +76,6 @@ namespace adaptive
> virtual ~SlaveDemuxer();
> virtual bool create(); /* reimpl */
> virtual int demux(mtime_t); /* reimpl */
> -
> - private:
> - mtime_t length;
> };
>
> }
>
I believe this is here as check, not to get really length.
hence the eof.
--
Francois Cartegnie
VideoLAN - VLC Developer
More information about the vlc-devel
mailing list