summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-02-18 10:20:03 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-02-18 10:20:03 +0000
commit608d0dee6fdb81ad260e74071a329353d74eef39 (patch)
tree5927e154882499bde43f750fb9d558b1ee530a7f /ffserver.c
parentd6a4c0b111d41bbf1effd771605dfb71fd8903cf (diff)
* Also include time.h for nanosleep()
by: Philipp Matthias Hahn <pmhahn@titan.lahn.de> Originally committed as revision 309 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffserver.c b/ffserver.c
index d2d74796c9..f4a6250b1b 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -880,8 +880,9 @@ static int http_prepare_data(HTTPContext *c)
}
}
} else {
- send_it:
- av_write_packet(&c->fmt_ctx, &pkt);
+ send_it:
+ if (av_write_packet(&c->fmt_ctx, &pkt))
+ c->state = HTTPSTATE_SEND_DATA_TRAILER;
}
av_free_packet(&pkt);