Commit 44fe4cb2 authored by Zhao Zhili's avatar Zhao Zhili Committed by François Cartegnie

demux: adaptive: pass by const reference for compare

Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
(cherry picked from commit ed25d750)
parent 94b819f0
......@@ -196,7 +196,7 @@ struct PrioritizedAbstractStream
AbstractStream *st;
};
static bool streamCompare(PrioritizedAbstractStream a, PrioritizedAbstractStream b)
static bool streamCompare(const PrioritizedAbstractStream &a, const PrioritizedAbstractStream &b)
{
if( a.status >= b.status ) /* Highest prio is higer value in enum */
{
......
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