[vlc-devel] [PATCH 2/9] es_format: also check extended difference
Thomas Guillem
thomas at gllm.fr
Thu Oct 3 16:33:52 CEST 2019
If the extended attribute change, it should trigger a restart of the aout.
---
src/misc/es_format.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index 9abf7732f3..ec0bbd0ceb 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -525,7 +525,8 @@ bool es_format_IsSimilar( const es_format_t *p_fmt1, const es_format_t *p_fmt2 )
if( a1.i_format && a2.i_format && a1.i_format != a2.i_format )
return false;
- if( a1.channel_type != a2.channel_type ||
+ if( a1.extended != a2.extended ||
+ a1.channel_type != a2.channel_type ||
a1.i_rate != a2.i_rate ||
a1.i_channels != a2.i_channels ||
a1.i_physical_channels != a2.i_physical_channels ||
--
2.20.1
More information about the vlc-devel
mailing list