demux: adaptive: force minimal pts delay
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 20 Jun 2016 15:30:10 +0000 (17:30 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 9 Jul 2016 11:10:55 +0000 (13:10 +0200)
modules/demux/adaptive/PlaylistManager.cpp

index 1f24777..95a27ef 100644 (file)
@@ -457,9 +457,16 @@ int PlaylistManager::doControl(int i_query, va_list args)
         }
 
         case DEMUX_GET_PTS_DELAY:
-            *va_arg (args, int64_t *) = INT64_C(1000) *
-                var_InheritInteger(p_demux, "network-caching");
-             break;
+            if( logicType != AbstractAdaptationLogic::RateBased )
+            {
+                *va_arg (args, int64_t *) = INT64_C(1000) *
+                    var_InheritInteger(p_demux, "network-caching");
+            }
+            else
+            {
+                *va_arg (args, int64_t *) = 1000 * INT64_C(1000);
+            }
+            break;
 
         default:
             return VLC_EGENERIC;