smooth: provide PTS delay
[vlc.git] / modules / stream_filter / smooth / smooth.c
index 5e2c9fd..3189c32 100644 (file)
@@ -757,6 +757,10 @@ static int Control( stream_t *s, int i_query, va_list args )
         case STREAM_GET_SIZE:
             *(va_arg( args, uint64_t * )) = FAKE_STREAM_SIZE;
             break;
+        case STREAM_GET_PTS_DELAY:
+            *va_arg (args, int64_t *) =
+                var_InheritInteger(s, "network-caching");
+             break;
         default:
             return VLC_EGENERIC;
     }