Commit 636c11b6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stream: remove unused STREAM_UPDATE_SIZE control

parent 64aaa8ee
......@@ -91,10 +91,6 @@ enum stream_query_e
STREAM_GET_SIZE, /**< arg1= uint64_t * res=cannot fail (0 if no sense)*/
/* You should update size of source if any and then update size
* FIXME find a way to avoid it */
STREAM_UPDATE_SIZE,
/* */
STREAM_GET_PTS_DELAY = 0x101,/**< arg1= int64_t* res=cannot fail */
STREAM_GET_TITLE_INFO, /**< arg1=input_title_t*** arg2=int* res=can fail */
......
......@@ -56,7 +56,6 @@ static int Control(stream_t *p_stream, int i_query, va_list args)
case STREAM_GET_SIZE:
case STREAM_GET_POSITION:
case STREAM_SET_POSITION:
case STREAM_UPDATE_SIZE:
case STREAM_SET_RECORD_STATE:
case STREAM_GET_CONTENT_TYPE:
return VLC_EGENERIC;
......
......@@ -302,7 +302,6 @@ static int Control( stream_t *s, int i_query, va_list args )
case STREAM_GET_CONTENT_TYPE:
return VLC_EGENERIC;
case STREAM_UPDATE_SIZE:
case STREAM_CAN_SEEK:
case STREAM_CAN_FASTSEEK:
case STREAM_SET_RECORD_STATE:
......
......@@ -374,16 +374,6 @@ static void AStreamControlReset( stream_t *s )
}
}
/****************************************************************************
* AStreamControlUpdate:
****************************************************************************/
static void AStreamControlUpdate( stream_t *s )
{
stream_sys_t *p_sys = s->p_sys;
p_sys->i_pos = p_sys->p_access->info.i_pos;
}
#define static_control_match(foo) \
static_assert((unsigned) STREAM_##foo == ACCESS_##foo, "Mismatch")
......@@ -458,10 +448,6 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
}
}
case STREAM_UPDATE_SIZE:
AStreamControlUpdate( s );
return VLC_SUCCESS;
case STREAM_SET_TITLE:
case STREAM_SET_SEEKPOINT:
{
......
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