Commit e0be3f66 authored by philipjsg's avatar philipjsg

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

on my part.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@536 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2ad7d5c7
......@@ -400,7 +400,8 @@ static int handle_http(HTTPContext *c, long cur_time)
}
} else {
c->buffer_ptr += len;
c->stream->bytes_served += len;
if (c->stream)
c->stream->bytes_served += len;
c->data_count += len;
if (c->buffer_ptr >= c->buffer_end) {
/* if error, exit */
......@@ -1225,7 +1226,8 @@ static int http_send_data(HTTPContext *c)
} else {
c->buffer_ptr += len;
c->data_count += len;
c->stream->bytes_served += len;
if (c->stream)
c->stream->bytes_served += len;
}
}
return 0;
......
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