[vlc-devel] [PATCH 1/2] demux: adaptive: avoid using a bool telling if the thread is not created

Francois Cartegnie fcvlcdev at free.fr
Tue Feb 11 10:03:41 CET 2020


Le 11/02/2020 à 10:01, Steve Lhomme a écrit :
> We already have a variable to store it.
> ---
>  modules/demux/adaptive/PlaylistManager.cpp | 18 ++++++++++--------
>  modules/demux/adaptive/PlaylistManager.h   |  1 -
>  2 files changed, 10 insertions(+), 9 deletions(-)
> 
> diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
> index a8bce7aca19..62c697e1432 100644
> --- a/modules/demux/adaptive/PlaylistManager.cpp
> +++ b/modules/demux/adaptive/PlaylistManager.cpp
> @@ -62,7 +62,7 @@ PlaylistManager::PlaylistManager( demux_t *p_demux_,
>      currentPeriod = playlist->getFirstPeriod();
>      resources = res;
>      failedupdates = 0;
> -    b_thread = false;
> +    thread = nullptr;
>      b_buffering = false;

AFAIK thread_t depends on platform

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list