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

stream_filter: rectify PTS delay unit (fix #10748)

parent c3bb23cd
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
# include "config.h" # include "config.h"
#endif #endif
#define __STDC_CONSTANT_MACROS 1
#include <stdint.h>
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
...@@ -283,7 +286,7 @@ static int Control (stream_t *p_stream, int i_query, va_list args) ...@@ -283,7 +286,7 @@ static int Control (stream_t *p_stream, int i_query, va_list args)
break; break;
} }
case STREAM_GET_PTS_DELAY: case STREAM_GET_PTS_DELAY:
*va_arg (args, int64_t *) = *va_arg (args, int64_t *) = INT64_C(1000) *
var_InheritInteger(p_stream, "network-caching"); var_InheritInteger(p_stream, "network-caching");
break; break;
......
...@@ -2686,7 +2686,7 @@ static int Control(stream_t *s, int i_query, va_list args) ...@@ -2686,7 +2686,7 @@ static int Control(stream_t *s, int i_query, va_list args)
*(va_arg (args, uint64_t *)) = GetStreamSize(s); *(va_arg (args, uint64_t *)) = GetStreamSize(s);
break; break;
case STREAM_GET_PTS_DELAY: case STREAM_GET_PTS_DELAY:
*va_arg (args, int64_t *) = *va_arg (args, int64_t *) = INT64_C(1000) *
var_InheritInteger(s, "network-caching"); var_InheritInteger(s, "network-caching");
break; break;
default: default:
......
...@@ -758,7 +758,7 @@ static int Control( stream_t *s, int i_query, va_list args ) ...@@ -758,7 +758,7 @@ static int Control( stream_t *s, int i_query, va_list args )
*(va_arg( args, uint64_t * )) = FAKE_STREAM_SIZE; *(va_arg( args, uint64_t * )) = FAKE_STREAM_SIZE;
break; break;
case STREAM_GET_PTS_DELAY: case STREAM_GET_PTS_DELAY:
*va_arg (args, int64_t *) = *va_arg (args, int64_t *) = INT64_C(1000) *
var_InheritInteger(s, "network-caching"); var_InheritInteger(s, "network-caching");
break; break;
default: 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