<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi All,<br> <br> I am using vlc for to play mp3 files over http using --http-reconnect parameter. If i unpluged my network cable and wait for a while(Let's say 10 sec) then plug cable ,every new p_buffer start_times comes with old time stamps so they are dropped by aout_input_play.<br>I checked source codes and see that aout_fifos using "aout_DateGet( &p_fifo->end_date )" fifos end date which is very wrong if conenction lost.So we need i logic for to understand gap betweens packets in fifo. <br><br>This means;<br>
0s - Player starts playing<br>
10s - Player lost connection<br>
50s - Player get connection again<br>
(50-10) 40s - dropped by vlc<br>
X>90s -> if you are lucky stream will start after 40s <br><br>I modified code like that but seems more places using old value. Is that kind of solution ok or am i missing something?<br><br>void aout_FifoPush( aout_instance_t * p_aout, aout_fifo_t * p_fifo,<br> aout_buffer_t * p_buffer )<br>{<br> (void)p_aout;<br> AOUT_ASSERT_FIFO_LOCKED;<br><br> *p_fifo->pp_last = p_buffer;<br> p_fifo->pp_last = &p_buffer->p_next;<br> *p_fifo->pp_last = NULL;<br> /* Enforce the continuity of the stream. */<br> if ( aout_DateGet( &p_fifo->end_date ) )<br> {<br>#if 0<br> if ( mdate() - aout_DateGet( &p_fifo->end_date ) > DEFAULT_PTS_DELAY*5 ) {<br>
msg_Warn( p_aout, "gap between buffers (%"PRId64")",<br> mdate() - aout_DateGet( &p_fifo->end_date ));<br> aout_DateSet( &p_fifo->end_date, mdate()); ///IS mdate ok or what should be used???<br> printf("X\r\n");<br> }<br>#endif<br> p_buffer->start_date = aout_DateGet( &p_fifo->end_date );<br> p_buffer->end_date = aout_DateIncrement( &p_fifo->end_date,<br> p_buff
er->i_nb_samples );<br> }<br> else<br> {<br> aout_DateSet( &p_fifo->end_date, p_buffer->end_date );<br> }<br>}<br><br>Cheers<br>Celilr <br> <br /><hr />Windows Live: Make it easier for your friends to see <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009' target='_new'>what you’re up to on Facebook.</a></body>
</html>