mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
input: deprecate b_dead, b_eof and b_error
Those values are writable by the input thread, and thus inaccessible to other threads. Any remaining use of those (in VLM, podcast and interfaces notably) is an undefined memory access, a bug.
This commit is contained in:
parent
eb4eb47850
commit
729adddade
@ -219,17 +219,16 @@ typedef struct input_resource_t input_resource_t;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Main structure representing an input thread. This structure is mostly
|
* Main structure representing an input thread. This structure is mostly
|
||||||
* private. The only public fields are READ-ONLY. You must use the helpers
|
* private. The only public fields are read-only and constant.
|
||||||
* to modify them
|
|
||||||
*/
|
*/
|
||||||
struct input_thread_t
|
struct input_thread_t
|
||||||
{
|
{
|
||||||
VLC_COMMON_MEMBERS
|
VLC_COMMON_MEMBERS
|
||||||
|
|
||||||
bool b_error;
|
bool b_error VLC_DEPRECATED;
|
||||||
bool b_eof;
|
bool b_eof VLC_DEPRECATED;
|
||||||
bool b_preparsing;
|
bool b_preparsing;
|
||||||
bool b_dead;
|
bool b_dead VLC_DEPRECATED;
|
||||||
|
|
||||||
/* All other data is input_thread is PRIVATE. You can't access it
|
/* All other data is input_thread is PRIVATE. You can't access it
|
||||||
* outside of src/input */
|
* outside of src/input */
|
||||||
|
Loading…
Reference in New Issue
Block a user