<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer][MediaStream] Capture pipeline remains active after track was stopped"
   href="https://bugs.webkit.org/show_bug.cgi?id=241549#c15">Comment # 15</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer][MediaStream] Capture pipeline remains active after track was stopped"
   href="https://bugs.webkit.org/show_bug.cgi?id=241549">bug 241549</a>
              from <span class="vcard"><a class="email" href="mailto:james.hilliard1@gmail.com" title="James Hilliard <james.hilliard1@gmail.com>"> <span class="fn">James Hilliard</span></a>
</span></b>
        <pre>Oh, pretty sure it's this pipewire renegotiation bug, the problem seems to be that the isCapturingDisplay() doesn't actually catch the usage of pipewiresrc properly so a renegotiation occurs even when pipewiresrc is in use.
<a href="https://github.com/WebKit/WebKit/commit/5e80996639ec4af8fe9a0828feda7f2b374f9106#diff-5050ca37bb2b1d47f49b0053a59bb6de270064f69dcd55525b2612f28084b91fR262-R266">https://github.com/WebKit/WebKit/commit/5e80996639ec4af8fe9a0828feda7f2b374f9106#diff-5050ca37bb2b1d47f49b0053a59bb6de270064f69dcd55525b2612f28084b91fR262-R266</a>

The bug in pipewiresrc seems to be that the plugin will call pw_stream_connect(which AFAIU is only designed to be called once here) for each negotiate call:
<a href="https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/0.3.52/src/gst/gstpipewiresrc.c#L810-815">https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/0.3.52/src/gst/gstpipewiresrc.c#L810-815</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>