Commit f88ab15d authored by Francois Cartegnie's avatar Francois Cartegnie

stream_filter: smooth: get rid of es->index->es

parent e1bedc11
......@@ -482,13 +482,6 @@ static int Download( stream_t *s, sms_stream_t *sms )
assert( sms->p_nextdownload->data == NULL );
assert( sms->current_qlvl );
int index = es_cat_to_index( sms->type );
if ( unlikely( index == -1 ) )
{
msg_Err( s, "invalid stream type" );
return VLC_EGENERIC;
}
chunk_t *chunk = sms->p_nextdownload;
if( !chunk )
{
......
......@@ -188,7 +188,5 @@ void sms_Free( sms_stream_t *);
uint8_t *decode_string_hex_to_binary( const char * );
sms_stream_t * sms_get_stream_by_cat( stream_sys_t *, int );
bool no_more_chunks( stream_sys_t * );
int index_to_es_cat( int );
int es_cat_to_index( int );
void resetChunksState( stream_sys_t * );
#endif
......@@ -200,36 +200,6 @@ sms_stream_t * sms_get_stream_by_cat( stream_sys_t *p_sys, int i_cat )
return NULL;
}
int es_cat_to_index( int i_cat )
{
switch( i_cat )
{
case VIDEO_ES:
return 0;
case AUDIO_ES:
return 1;
case SPU_ES:
return 2;
default:
return -1;
}
}
int index_to_es_cat( int index )
{
switch( index )
{
case 0:
return VIDEO_ES;
case 1:
return AUDIO_ES;
case 2:
return SPU_ES;
default:
return -1;
}
}
bool no_more_chunks( stream_sys_t *p_sys )
{
FOREACH_ARRAY( sms_stream_t *sms, p_sys->sms_selected );
......
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