Commits on Source (5)
-
Thomas Guillem authored
The input master clock has a higher priority than the ES master clock. There can be one input master and one es master at a given time. In that case, the ES master will behave as a slave clock. This will allow to be more flexible from the es_out.c when creating input and ES clocks.
910e98c2 -
Thomas Guillem authored
No functional changes for now since only one master is created from es_out.c (for now).
537c5039 -
Thomas Guillem authored
Allow to attach the clock listener after the input clock is created.
dfd4929f -
Thomas Guillem authored
No functional changes.
04685396 -
Thomas Guillem authored
The clock source selection depends on priv->b_can_pace_control but this variable is only initialized from the input_thread_t after the demux is opened. Programs and ES tracks can be created from the demux open callback or midstream (from the demux callback). Therefore, we can't handle the clock source selection after the program is created since priv->b_can_pace_control might not be initialized. To fix this issue, handle clock source selection when the first PCR is sent (from ES_OUT_SET_PCR).
800482fb
Showing
- src/clock/clock.c 43 additions, 4 deletionssrc/clock/clock.c
- src/clock/clock.h 12 additions, 0 deletionssrc/clock/clock.h
- src/clock/input_clock.c 10 additions, 7 deletionssrc/clock/input_clock.c
- src/clock/input_clock.h 13 additions, 4 deletionssrc/clock/input_clock.h
- src/input/es_out.c 54 additions, 27 deletionssrc/input/es_out.c