Skip to content
Snippets Groups Projects
  1. Feb 15, 2018
  2. Feb 14, 2018
  3. Feb 08, 2018
  4. Feb 03, 2018
  5. Feb 02, 2018
  6. Feb 01, 2018
  7. Jan 31, 2018
  8. Jan 30, 2018
  9. Jan 27, 2018
  10. Jan 26, 2018
  11. Jan 23, 2018
  12. Jan 20, 2018
  13. Jan 18, 2018
  14. Jan 16, 2018
    • Edward Hervey's avatar
      gstpad: Avoid stream-dead-lock on deactivation · 31383e44
      Edward Hervey authored and Edward Hervey's avatar Edward Hervey committed
      The following case can happen when two thread try to activate and
      deactivate a pad at the same time:
      T1: starts to deactivate, calls pre_activate(), sets in_activation
          to TRUE and carries on
      T2: starts to activate, calls pre_activate(), in_activation is TRUE
          so it waits on the GCond
      T1: calls post_activate(), tries to acquire the streaming lock ..
          but can't because T2 is currently holding it
      
      With this patch, the deadlock will no longer happen but does not
      solve the problem that:
      T2: will resume activation of the pad, set the pad mode to the target
         one (PUSH or PULL) and eventually the streaming lock gets released.
      T1: is able to finish calling post_activate() ... but ... the pad
         wasn't deactivated (T2 was the last one to "activate" the pad.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=792341
      31383e44
  15. Jan 15, 2018
  16. Jan 12, 2018
  17. Jan 11, 2018
Loading