<html><head></head><body>Hi,<br><br>Not sure what you're trying to do but same offset is typically not enough for compatibility, so this is probably putting brown paper over a bug...<br><br><div class="gmail_quote">Le 20 avril 2020 21:27:26 GMT+03:00, Francois Cartegnie <fcvlcdev@free.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">If you end up reading a pointer instead of query,<br>all priv/public controls guards breaks.<hr> src/input/es_out_timeshift.c | 6 +++++-<br> 1 file changed, 5 insertions(+), 1 deletion(-)<br><br>diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c<br>index 7c1d2d0095..dbff49d4c5 100644<br>--- a/src/input/es_out_timeshift.c<br>+++ b/src/input/es_out_timeshift.c<br>@@ -88,8 +88,8 @@ typedef struct attribute_packed<br> <br> typedef struct attribute_packed<br> {<br>- input_source_t *in;<br> int i_query;<br>+ input_source_t *in;<br> <br> union<br> {<br>@@ -158,6 +158,10 @@ typedef struct attribute_packed<br> } u;<br> } ts_cmd_privcontrol_t;<br> <br>+static_assert(offsetof(ts_cmd_control_t, i_query) ==<br>+ offsetof(ts_cmd_privcontrol_t, i_query),<br>+ "query control offset is inconsistent");<br>+<br> typedef struct attribute_packed<br> {<br> int8_t i_type;</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>