Commit 273c9cc1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

stream_filter: rectify PTS delay unit (fix #10748)

parent c3bb23cd
......@@ -29,6 +29,9 @@
# include "config.h"
#endif
#define __STDC_CONSTANT_MACROS 1
#include <stdint.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
......@@ -283,7 +286,7 @@ static int Control (stream_t *p_stream, int i_query, va_list args)
break;
}
case STREAM_GET_PTS_DELAY:
*va_arg (args, int64_t *) =
*va_arg (args, int64_t *) = INT64_C(1000) *
var_InheritInteger(p_stream, "network-caching");
break;
......
......@@ -2686,7 +2686,7 @@ static int Control(stream_t *s, int i_query, va_list args)
*(va_arg (args, uint64_t *)) = GetStreamSize(s);
break;
case STREAM_GET_PTS_DELAY:
*va_arg (args, int64_t *) =
*va_arg (args, int64_t *) = INT64_C(1000) *
var_InheritInteger(s, "network-caching");
break;
default:
......
......@@ -758,7 +758,7 @@ static int Control( stream_t *s, int i_query, va_list args )
*(va_arg( args, uint64_t * )) = FAKE_STREAM_SIZE;
break;
case STREAM_GET_PTS_DELAY:
*va_arg (args, int64_t *) =
*va_arg (args, int64_t *) = INT64_C(1000) *
var_InheritInteger(s, "network-caching");
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment