Commit 2e04edb3 authored by Philip Gladstone's avatar Philip Gladstone

Fix a segfault when handling errors or .asx or .ram files. Silly bug

on my part.

Originally committed as revision 536 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 10fc8424
...@@ -400,6 +400,7 @@ static int handle_http(HTTPContext *c, long cur_time) ...@@ -400,6 +400,7 @@ static int handle_http(HTTPContext *c, long cur_time)
} }
} else { } else {
c->buffer_ptr += len; c->buffer_ptr += len;
if (c->stream)
c->stream->bytes_served += len; c->stream->bytes_served += len;
c->data_count += len; c->data_count += len;
if (c->buffer_ptr >= c->buffer_end) { if (c->buffer_ptr >= c->buffer_end) {
...@@ -1225,6 +1226,7 @@ static int http_send_data(HTTPContext *c) ...@@ -1225,6 +1226,7 @@ static int http_send_data(HTTPContext *c)
} else { } else {
c->buffer_ptr += len; c->buffer_ptr += len;
c->data_count += len; c->data_count += len;
if (c->stream)
c->stream->bytes_served += len; c->stream->bytes_served += len;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment