<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - decodebin: race between setting use-buffering and max-size-time"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=744308">744308</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>decodebin: race between setting use-buffering and max-size-time
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>GStreamer
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.4.5
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gst-plugins-base
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>gstreamer-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dpalmer@digisoft.tv
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>gstreamer-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>GNOME version</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm using uridecodebin to play some HLS content, and have the 'use-buffering'
property set to TRUE, and also set 'buffer-duration' and 'buffer-size'.

On a variant switch, a new decode group is created in the decodebin. When this
decode group becomes active, the use-buffering property on the multiqueue in
that group is set to TRUE, and then the max-size-time property is changed from
10 seconds (set when the multiqueue is created) to buffer-duration seconds (3.5
seconds in my case). Buffering messages are sometimes emitted by the multiqueue
in the window between setting use-buffering and max-size-time - there's a race.
This can clearly be seen in the log snippet below, which is filtered for
clarity:

     decodebin
gstdecodebin2.c:3671:gst_decode_group_reset_buffering:<decodebin0> Group reset
buffering 0x8fb828 multiqueue9
    multiqueue gstmultiqueue.c:977:gst_multi_queue_post_buffering:<multiqueue9>
Going to post buffering: 80%
     decodebin gstdecodebin2.c:3190:decodebin_set_queue_size:<multiqueue9> use
buffering 1
     decodebin gstdecodebin2.c:3234:decodebin_set_queue_size:<multiqueue9>
setting limits 9175040 bytes, 0 buffers, 3500000000
    multiqueue gstmultiqueue.c:938:update_buffering:<multiqueue9> buffering 230
percent</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>