smooth: provide PTS delay
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Nov 2013 16:01:56 +0000 (18:01 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Nov 2013 16:08:16 +0000 (18:08 +0200)
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;
     }