[dvblast-devel] fix infinite loop with -d

Christophe Massiot git at videolan.org
Mon Sep 28 23:42:52 CEST 2015


dvblast | branch: master | Christophe Massiot <cmassiot at openheadend.tv> | Mon Sep 28 23:42:22 2015 +0200| [d2002434bd6240399d376547372e9aed59d8c0db] | committer: Christophe Massiot

fix infinite loop with -d

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=d2002434bd6240399d376547372e9aed59d8c0db
---

 output.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/output.c b/output.c
index 6f33cd1..d453e82 100644
--- a/output.c
+++ b/output.c
@@ -547,7 +547,8 @@ static void outputs_Send(struct ev_loop *loop, struct ev_timer *w, int revents)
                 output_Flush( &output_dup );
 
             if ( output_dup.p_packets != NULL )
-                i_next_send = output_dup.p_packets->i_dts;
+                i_next_send = output_dup.p_packets->i_dts
+                                + output_dup.config.i_output_latency;
         }
 
         for ( i = 0; i < i_nb_outputs; i++ )



More information about the dvblast-devel mailing list