From 608d0dee6fdb81ad260e74071a329353d74eef39 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 18 Feb 2002 10:20:03 +0000 Subject: [PATCH] * Also include time.h for nanosleep() by: Philipp Matthias Hahn Originally committed as revision 309 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 5 +++-- libav/grab.c | 2 +- 2 files changed, 4 insertions(+), 3 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); diff --git a/libav/grab.c b/libav/grab.c index 774c5b0e79..7dd6fd7c1f 100644 --- a/libav/grab.c +++ b/libav/grab.c @@ -23,7 +23,7 @@ #include #include #include - +#include typedef struct { int fd;