[vlc-commits] demux: adaptive: pass by const reference for compare
Zhao Zhili
git at videolan.org
Mon Feb 26 12:16:36 CET 2018
vlc/vlc-3.0 | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Jan 19 00:58:58 2018 +0800| [44fe4cb2a8e726e4debfbcf09442bd31a55791f4] | committer: Francois Cartegnie
demux: adaptive: pass by const reference for compare
Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>
(cherry picked from commit ed25d750a688618c120c5c3cbd396da35ff5d5a2)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=44fe4cb2a8e726e4debfbcf09442bd31a55791f4
---
modules/demux/adaptive/PlaylistManager.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index d6c9af1981..4aadbe896e 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -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 */
{
More information about the vlc-commits
mailing list