Commit 815e38a8 authored by Laurent Aimar's avatar Laurent Aimar

Do not return title if no chapters in mkv.

parent 5d3c921b
...@@ -1686,7 +1686,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -1686,7 +1686,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_SUCCESS; return VLC_SUCCESS;
case DEMUX_GET_TITLE_INFO: case DEMUX_GET_TITLE_INFO:
if( p_sys->titles.size() ) if( p_sys->titles.size() > 1 || ( p_sys->titles.size() == 1 && p_sys->titles[0]->i_seekpoint > 0 ) )
{ {
input_title_t ***ppp_title = (input_title_t***)va_arg( args, input_title_t*** ); input_title_t ***ppp_title = (input_title_t***)va_arg( args, input_title_t*** );
int *pi_int = (int*)va_arg( args, int* ); int *pi_int = (int*)va_arg( args, int* );
...@@ -1698,7 +1698,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -1698,7 +1698,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{ {
(*ppp_title)[i] = vlc_input_title_Duplicate( p_sys->titles[i] ); (*ppp_title)[i] = vlc_input_title_Duplicate( p_sys->titles[i] );
} }
return VLC_SUCCESS; return VLC_SUCCESS;
} }
return VLC_EGENERIC; return VLC_EGENERIC;
......
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