Commit 67fcd96c authored by Ilkka Ollakka's avatar Ilkka Ollakka

httplive: fix qsort compare so streams are sorted properly.

parent 833ff513
......@@ -920,7 +920,8 @@ static int hls_CompareStreams( const void* a, const void* b )
{
hls_stream_t* stream_a = *(hls_stream_t**)a;
hls_stream_t* stream_b = *(hls_stream_t**)b;
return stream_a->bandwidth > stream_b->bandwidth;
return stream_a->bandwidth - stream_b->bandwidth;
}
/* The http://tools.ietf.org/html/draft-pantos-http-live-streaming-04#page-8
......
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