Commit 02c98de6 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix telx test in es_out.c: p_block->i_rate has not been defined yet, so do it...

Fix telx test in es_out.c: p_block->i_rate has not been defined yet, so do it before testing its value.
(cherry picked from commit 9509b6bba727725f205f561689f653452c73410b)
parent efbb4154
...@@ -1427,6 +1427,8 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block ) ...@@ -1427,6 +1427,8 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
p_block->i_pts = p_block->i_pts =
input_ClockGetTS( p_input, &p_pgrm->clock, p_block->i_pts ) + i_delay; input_ClockGetTS( p_input, &p_pgrm->clock, p_block->i_pts ) + i_delay;
} }
p_block->i_rate = p_sys->i_rate;
if ( p_block->i_rate == INPUT_RATE_DEFAULT && if ( p_block->i_rate == INPUT_RATE_DEFAULT &&
es->fmt.i_codec == VLC_FOURCC( 't', 'e', 'l', 'x' ) ) es->fmt.i_codec == VLC_FOURCC( 't', 'e', 'l', 'x' ) )
{ {
...@@ -1442,8 +1444,6 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block ) ...@@ -1442,8 +1444,6 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
} }
} }
p_block->i_rate = p_sys->i_rate;
/* TODO handle mute */ /* TODO handle mute */
if( es->p_dec && if( es->p_dec &&
( es->fmt.i_cat != AUDIO_ES || ( es->fmt.i_cat != AUDIO_ES ||
......
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