[vlc-devel] [PATCH 0/5] dynamic update of "sout"

Steve Lhomme robux4 at videolabs.io
Fri Apr 22 17:56:41 CEST 2016


With the Chromecast playback, the common use case is to start playing a file
locally and during playback decide to send it to the Chromecast.
As the Chromecast is a "sout" output, we need to be able to listen to changes
on the "sout" string and restart the input_thread_t init to take in account
the new value.

It works both way, you can decide to set "sout" to "" or NULL during playback
and it will switch back to local.

Steve Lhomme (5):
  timeshift: ES_OUT_RESTART_ES with NULL is a valid value
  input: don't keep the sout reference when it's released
  input: when setting a NULL renderer we should keep the current one
  input: if there's a p_sout left, push it in the resource cache for
    reuse
  [RFC] input: allow setting the "sout" while playing and restart the
    output accordingly

 include/vlc_interface.h                       |   1 +
 include/vlc_intf_strings.h                    |   1 +
 modules/gui/qt/Makefile.am                    |   5 +
 modules/gui/qt/actions_manager.cpp            |   3 +
 modules/gui/qt/actions_manager.hpp            |   1 +
 modules/gui/qt/components/controller.cpp      |   4 +
 modules/gui/qt/components/controller.hpp      |  13 +-
 modules/gui/qt/dialogs/renderer.cpp           | 258 ++++++++++++++++++++++++++
 modules/gui/qt/dialogs/renderer.hpp           |  64 +++++++
 modules/gui/qt/dialogs_provider.cpp           |   8 +
 modules/gui/qt/dialogs_provider.hpp           |   3 +
 modules/gui/qt/menus.cpp                      |   5 +
 modules/gui/qt/pixmaps/toolbar/chromecast.png | Bin 0 -> 286 bytes
 modules/gui/qt/ui/renderer.ui                 |  54 ++++++
 modules/gui/qt/vlc.qrc                        |   1 +
 src/input/es_out_timeshift.c                  |   3 +-
 src/input/input.c                             |  91 ++++++++-
 src/input/input_internal.h                    |   1 +
 src/libvlc.c                                  |   4 +
 19 files changed, 512 insertions(+), 8 deletions(-)
 create mode 100644 modules/gui/qt/dialogs/renderer.cpp
 create mode 100644 modules/gui/qt/dialogs/renderer.hpp
 create mode 100644 modules/gui/qt/pixmaps/toolbar/chromecast.png
 create mode 100644 modules/gui/qt/ui/renderer.ui

-- 
2.7.0



More information about the vlc-devel mailing list