[FFmpeg-cvslog] r15398 - trunk/ffserver.c

bcoudurier subversion
Wed Sep 24 19:11:46 CEST 2008


Author: bcoudurier
Date: Wed Sep 24 19:11:46 2008
New Revision: 15398

Log:
only write trailer when state says so, should fix issue #646

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Wed Sep 24 19:11:46 2008
@@ -796,7 +796,7 @@ static void close_connection(HTTPContext
 
     ctx = &c->fmt_ctx;
 
-    if (!c->last_packet_sent) {
+    if (!c->last_packet_sent && c->state == HTTPSTATE_SEND_DATA_TRAILER) {
         if (ctx->oformat) {
             /* prepare header */
             if (url_open_dyn_buf(&ctx->pb) >= 0) {




More information about the ffmpeg-cvslog mailing list