[vlc-commits] [Git][videolan/vlc][master] es_out: log when ES tracks are added/deleted/(un)selected
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Thu Jul 29 12:18:23 UTC 2021
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
b7a0228e by Thomas Guillem at 2021-07-29T12:07:34+00:00
es_out: log when ES tracks are added/deleted/(un)selected
And print the track str_id. It can be very useful for users that want to
play with "type-track-id" options.
- - - - -
1 changed file:
- src/input/es_out.c
Changes:
=====================================
src/input/es_out.c
=====================================
@@ -1274,6 +1274,24 @@ static void EsOutSendEsEvent(es_out_t *out, es_out_id_t *es, int action,
es_out_sys_t *p_sys = container_of(out, es_out_sys_t, out);
input_thread_t *p_input = p_sys->p_input;
+ const char *action_str;
+ switch( action )
+ {
+ case VLC_INPUT_ES_ADDED:
+ action_str = "added"; break;
+ case VLC_INPUT_ES_DELETED:
+ action_str = "deleted"; break;
+ case VLC_INPUT_ES_SELECTED:
+ action_str = forced ? "selected (forced)" : "selected"; break;
+ case VLC_INPUT_ES_UNSELECTED:
+ action_str = "unselected"; break;
+ default:
+ action_str = NULL; break;
+ }
+ if( action_str != NULL )
+ msg_Dbg( p_sys->p_input, "ES track %s: '%s' (fourcc: '%4.4s')",
+ action_str, es->id.str_id, (const char *) &es->fmt.i_codec );
+
input_SendEventEs(p_input, &(struct vlc_input_event_es) {
.action = action,
.id = &es->id,
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b7a0228eb9b252f8b5b713c0a3ceb65767b062c5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b7a0228eb9b252f8b5b713c0a3ceb65767b062c5
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list