[vlc-devel] [PATCH 08/12] vlc_player: store current angle
Francois Cartegnie
fcvlcdev at free.fr
Thu Apr 2 20:40:16 CEST 2020
---
src/player/input.c | 2 ++
src/player/player.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/player/input.c b/src/player/input.c
index e43b316988..e11a0e5633 100644
--- a/src/player/input.c
+++ b/src/player/input.c
@@ -580,6 +580,8 @@ vlc_player_input_HandleAngleEvent(struct vlc_player_input *input,
if (ev->angle > title->additional_angles)
return;
+ input->angle_selected = ev->angle;
+
vlc_player_SendEvent(player, on_angle_selection_changed, ev->angle);
}
diff --git a/src/player/player.h b/src/player/player.h
index 4ba6e061fa..a6930d64aa 100644
--- a/src/player/player.h
+++ b/src/player/player.h
@@ -91,6 +91,7 @@ struct vlc_player_input
size_t title_selected;
size_t chapter_selected;
+ unsigned char angle_selected;
struct vlc_list node;
--
2.25.1
More information about the vlc-devel
mailing list