[vlc-devel] [RFC PATCH 1/2] dvdnav: Notify of title changes when dvdnav notifies us

Thomas Guillem thomas at gllm.fr
Thu Jul 18 18:02:35 CEST 2019


OK for me.

On Thu, Jul 18, 2019, at 17:56, Hugo Beauzée-Luyssen wrote:
> Otherwise the title is not "ready" and we can't seek in it until a few
> more blocks are demuxed
> ---
>  modules/access/dvdnav.c | 15 ---------------
>  1 file changed, 15 deletions(-)
> 
> diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
> index 9a38df3151..f80fabd89c 100644
> --- a/modules/access/dvdnav.c
> +++ b/modules/access/dvdnav.c
> @@ -612,10 +612,6 @@ static int Control( demux_t *p_demux, int i_query, 
> va_list args )
>                      return VLC_EGENERIC;
>                  }
>              }
> -
> -            p_sys->updates |= INPUT_UPDATE_TITLE | 
> INPUT_UPDATE_SEEKPOINT;
> -            p_sys->cur_title = i;
> -            p_sys->cur_seekpoint = 0;
>              return VLC_SUCCESS;
>  
>          case DEMUX_SET_SEEKPOINT:
> @@ -959,17 +955,6 @@ static int Demux( demux_t *p_demux )
>              p_sys->sar.i_den = 0;
>              break;
>          }
> -
> -        if( dvdnav_current_title_info( p_sys->dvdnav, &i_title,
> -                                       &i_part ) == DVDNAV_STATUS_OK )
> -        {
> -            if( i_title >= 0 && i_title < p_sys->i_title &&
> -                p_sys->cur_title != i_title )
> -            {
> -                p_sys->updates |= INPUT_UPDATE_TITLE;
> -                p_sys->cur_title = i_title;
> -            }
> -        }
>          break;
>      }
>  
> -- 
> 2.20.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list