input: fix vout recycling
Vout recycling as keeping the same "vout display" plugin and not disabling/enabling the window. Add input_resource_StopFreeVout: Used to stop the re-used vout if there is no video following the current input. The vout is now always closed or paused from input_resource_PutVout(). Only the main vout is paused, all additional vouts will be closed. The main vout will be actually closed from input_resource_StopFreeVout(), when we are sure that the next input doesn't have video.
Showing
- src/input/decoder.c 0 additions, 3 deletionssrc/input/decoder.c
- src/input/es_out.c 3 additions, 3 deletionssrc/input/es_out.c
- src/input/player.c 1 addition, 1 deletionsrc/input/player.c
- src/input/resource.c 18 additions, 0 deletionssrc/input/resource.c
- src/input/resource.h 2 additions, 0 deletionssrc/input/resource.h
Loading
Please register or sign in to comment