[vlc-devel] [PATCH 3/4] decoder: also send the ES id with vout events
Thomas Guillem
thomas at gllm.fr
Wed May 29 15:32:57 CEST 2019
---
include/vlc_input.h | 1 +
src/input/decoder.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/include/vlc_input.h b/include/vlc_input.h
index 86f640c49b..a2cb35c478 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -475,6 +475,7 @@ struct vlc_input_event_vout
VLC_INPUT_EVENT_VOUT_DELETED,
} action;
vout_thread_t *vout;
+ vlc_es_id_t *id;
};
struct vlc_input_event
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 615cc9eab9..275dee9b97 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -546,6 +546,7 @@ static int vout_update_format( decoder_t *p_dec )
&(struct vlc_input_event_vout) {
.action = VLC_INPUT_EVENT_VOUT_ADDED,
.vout = p_vout,
+ .id = p_owner->id,
});
vlc_mutex_lock( &p_owner->lock );
@@ -1958,6 +1959,7 @@ static void DeleteDecoder( decoder_t * p_dec )
&(struct vlc_input_event_vout) {
.action = VLC_INPUT_EVENT_VOUT_DELETED,
.vout = vout,
+ .id = p_owner->id,
});
input_resource_PutVout(p_owner->p_resource, vout);
}
--
2.20.1
More information about the vlc-devel
mailing list