1. 29 Jan, 2017 1 commit
  2. 06 Dec, 2016 3 commits
    • Thomas Guillem's avatar
      input/mrl_helpers: add test · 18560f82
      Thomas Guillem authored
      18560f82
    • Filip Roséen's avatar
      stream_extractor: add vlc_stream_extractor_CreateMRL · fcf55930
      Filip Roséen authored
      Function used by stream-extractor modules to make it easy to create a
      relative MRL for an entity within the data handled by the
      stream-extractor.
      Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
      fcf55930
    • Filip Roséen's avatar
      core: add stream_extractor module type · 3c20a6c3
      Filip Roséen authored
      These changes introduces a new module type named stream_extractor. The
      added documentation should explain when such module should be used,
      but in short it allows for extraction of data within a stream,
      effectively resulting in a new stream that refers to the extracted
      data.
      
      Interaction with the stream-extractor shall never happen directly,
      instead the module-backend is written in a way so that it exposes a
      stream_t to the public.
      
          [ access ] -> [ stream_t ] -> [ stream consumer ]
                         '- [ stream extractor ]
      
      Future changes are necessary in order to make modules of this type
      usable in practice, but has been split into individual commits so that
      the changes are easier to follow.
      Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
      3c20a6c3
  3. 20 Nov, 2016 1 commit
  4. 02 Nov, 2016 2 commits
  5. 30 Oct, 2016 2 commits
  6. 20 Sep, 2016 4 commits
  7. 07 Sep, 2016 1 commit
  8. 18 Jul, 2016 1 commit
  9. 13 Jul, 2016 1 commit
  10. 30 Jun, 2016 3 commits
  11. 25 May, 2016 2 commits
  12. 03 May, 2016 1 commit
  13. 25 Apr, 2016 1 commit
  14. 24 Feb, 2016 1 commit
    • Thomas Guillem's avatar
      android: get JavaVM* from JNI_OnLoad · 21e3fded
      Thomas Guillem authored
      And set the JavaVM* in a libvlc var option.
      
      This will allow android modules to access a JNIEnv* even when the parent is a
      not a libvlc_media_player. This will be used for the android Keystore module
      for example.
      
      Furthermore, this simplify the libvlc API when setting an android context.
      21e3fded
  15. 05 Feb, 2016 1 commit
  16. 02 Feb, 2016 1 commit
  17. 07 Jan, 2016 1 commit
  18. 09 Dec, 2015 1 commit
  19. 03 Dec, 2015 1 commit
  20. 29 Nov, 2015 1 commit
  21. 25 Aug, 2015 1 commit
  22. 15 Aug, 2015 1 commit
  23. 23 Jul, 2015 1 commit
  24. 06 Jul, 2015 1 commit
  25. 01 Jul, 2015 2 commits
    • Rémi Denis-Courmont's avatar
      d5567521
    • Rémi Denis-Courmont's avatar
      input: add per-thread sleep interruption framework · 2d099490
      Rémi Denis-Courmont authored
      For the sake of simplicity and for historical reasons, access and demux
      modules perform I/O in blocking mode. If no data is available (or more
      generally no I/O events), the blocking I/O calls will sleep and hold
      the whole input thread. This can lead to long time-outs or even
      complete deadlocks, e.g. notably in case of network error.
      
      Originally, a volatile flag (b_die) was checked at frequent interval to
      ascertain whether to abort. This violated the threaded memory model,
      and was incompatible with race-to-idle power management.
      
      In 2007, the VLC object thread signaling functions were introduced
      (vlc_object_wait, vlc_object_signal, ...) in an attempt to solve this.
      They proved inflexible and were not compatible with poll/select-style
      I/O events multiplexing. Those functions were ultimately removed a
      little over a year later.
      
      In the mean time, the "wait pipe" had been introduced. It was focused
      on network/socket data reception. While it continues to be used, it
      suffers several limitations:
       - it affects other threads using the same VLC object,
         and indistinctly disrupts all I/O after the "kill",
       - it incorrectly assumes that the same VLC object is used everywhere
         (leading to race conditions and live loops),
       - the convenience wrappers around the wait pipe can only wait on one
         single I/O event direction on a single file descriptor at a time,
       - it is currently tied to the VLC input thread.
      
      Also at about the same time, thread cancellation was reintroduced.
      Thread cancellation has proven helpful for simple thread main loops.
      But it ranges from impractical to unusable when sleeping deep within
      layers of code, such as in access and stream modules.
      
      Generally the problem of interrupting I/O is an intractable halting
      problem. And in practice a given reading operations inside a demuxer
      cannot be interrupted without breaking the state machine of the
      demuxer - in many or most cases. This changes set is only an attempt
      to complement thread cancellation, This does overcome most limitations
      of the existing "wait pipe" system and of former VLC object signals:
      
       - It is triggered by a function call specifying a target context.
       The context is tied to the thread that needs to be woken up from
       sleep. This works quite well because the problem essentially relates
       to the call flow of the sleeping thread. On the trigger side, this is
       similar to thread cancellation.
      
       - It leaves some flexibility w.r.t. choice of sleeping primitives.
       This initial change uses semaphores. Low-level file I/O will be
       introduced later.
      
       - The wake-up mechanism is edge-triggered and can be fired multiple
       times. Thus it does not irreversibly prevent all I/O and sleeping
       operations once fired. It only interrupts the ongoing or next sleep.
       In principles non-fatal interruptions could be handled that way, for
       instance input thread seek (rather than forceful stop) although that
       is not part of the changes set.
      
       - It is not tied to any specific event. The initial use case is
       stopping the input thread and checking vlc_object_alive() but it can
       be used for other purposes.
      2d099490
  26. 25 Jun, 2015 1 commit
  27. 11 Jun, 2015 2 commits
  28. 19 Mar, 2015 1 commit