[Bug 93497] spice-gtk out of memory when guest os replay vedio
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 3 09:45:45 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=93497
--- Comment #8 from Victor Toso <bugzilla at victortoso.com> ---
(In reply to linp.lin from comment #7)
> 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%.
Great that it solved your issue. I think the patch would reviewed and improved
and land upstream. Could you either send the patch to the mailing list [1] or
just attach the format-patch here [0]
[0] git format-patch -1
[1] git send-email *.patch --to=spice-devel at lists.freedesktop.org
Thanks again!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20160303/d7a72f0c/attachment.html>
More information about the spice-bugs
mailing list