[vlc-devel] Question regarding pointer assumptions in input.c

MANJEET YADUVANSHI manjeetyaduvanshi250 at gmail.com
Tue Apr 14 10:05:14 UTC 2026


Hi,

I was reading input.c to better understand the input pipeline.

I noticed that in functions like Preparse(), there are accesses such as
priv->master->p_demux->pf_readdir without explicit NULL checks.

I wanted to ask whether it is guaranteed by design that these pointers are
always valid at that point, or if defensive checks would be appropriate
here.

I was also considering whether this could be an area for a small
improvement, but wanted to clarify the intended design first.

Thanks.
Manjeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20260414/31f05d42/attachment.htm>


More information about the vlc-devel mailing list