<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:155270702@qq.com" title="linp.lin <155270702@qq.com>"> <span class="fn">linp.lin</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - spice-gtk out of memory when guest os replay vedio"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93497">bug 93497</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEEDINFO
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - spice-gtk out of memory when guest os replay vedio"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93497#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - spice-gtk out of memory when guest os replay vedio"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93497">bug 93497</a>
              from <span class="vcard"><a class="email" href="mailto:155270702@qq.com" title="linp.lin <155270702@qq.com>"> <span class="fn">linp.lin</span></a>
</span></b>
        <pre>1. display_handle_stream_data:limit st->msgq len
+    /*  st->msgq is full and clear queue */
+    if (g_queue_get_length(st->msgq) >= MAX_HARD_MSGQ_LEN) {
+             CHANNEL_DEBUG(channel, "st->msgq=%d and clear st->msgq",
g_queue_get_length(st->msgq));
+         g_queue_foreach(st->msgq, _msg_in_unref_func, NULL);
+             g_queue_clear(st->msgq);
+         if (st->timeout != 0) {
+             g_source_remove(st->timeout);
+             st->timeout = 0;
+         }
+    }
2. use hardware decoder(hisi chip) decode jpeg,it modify "stream_mjpeg_data"
func
it can make cpu load down 70-80%.</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>