[vlc-devel] [PATCH 1/2] demux: adaptive: pass by const reference for compare

Zhao Zhili quinkblack at foxmail.com
Thu Jan 18 17:58:58 CET 2018


---
 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 700fa3a8d3..4663a48aeb 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 */
     {
-- 
2.14.3 (Apple Git-98)





More information about the vlc-devel mailing list