aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-09-24 17:11:46 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-09-24 17:11:46 +0000
commit637b638e1eea5d3f41553637dfa8a13daf119273 (patch)
treecc3c45317e2f649787456796b37482f940aa6ea6 /ffserver.c
parent26f5e1469f9469ab30e16d6311bdbcbc7e0790cf (diff)
downloadffmpeg-637b638e1eea5d3f41553637dfa8a13daf119273.tar.gz
only write trailer when state says so, should fix issue #646
Originally committed as revision 15398 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 24b78c8e5e..c91bd64099 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -796,7 +796,7 @@ static void close_connection(HTTPContext *c)
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) {