diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:55:25 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:55:25 +0000 |
commit | 4f0a942baecac387790705534af1bfb31f8b74bb (patch) | |
tree | c3bedfdaf9eb878b20734d0f7e8d661b563df61c /ffserver.c | |
parent | 8aae202e44cb898a0e35e4afb4d97390118f335a (diff) | |
download | ffmpeg-4f0a942baecac387790705534af1bfb31f8b74bb.tar.gz |
return 1 when error during write frame, state changed
Originally committed as revision 13851 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 90ef807192..b53fb04619 100644 --- a/ffserver.c +++ b/ffserver.c @@ -2187,6 +2187,7 @@ static int http_prepare_data(HTTPContext *c) if (av_write_frame(ctx, &pkt) < 0) { http_log("Error writing frame to output\n"); c->state = HTTPSTATE_SEND_DATA_TRAILER; + return 1; } len = url_close_dyn_buf(ctx->pb, &c->pb_buffer); |