GNOME Bugzilla – Bug 725493
Consolidate message waiting code
Last modified: 2014-07-23 08:24:01 UTC
The attached patch depends on solving bug 725468 and consolidates the message waiting code into a single function instead of repeating it over and over again.
You forgot to attach the patch :) I'll try to find some time to review your patches later today
Created attachment 271406 [details] [review] Patch Ups, yeah that sometimes happens when I'm clicking to wildly on the website.
Review of attachment 271406 [details] [review]: Thanks for the patch, in general looks good but: ::: omx/gstomx.c @@ -1489,3 @@ - && port->buffers->len > - g_queue_get_length (&port->pending_buffers))) - err = OMX_ErrorTimeout; You're removing this part of the code without a replacement @@ -1944,3 @@ - if (port->buffers - && port->buffers->len > g_queue_get_length (&port->pending_buffers)) - err = OMX_ErrorTimeout; And this @@ -2158,3 @@ - if (add == 0) { - if (port->enabled_pending || port->disabled_pending) - err = OMX_ErrorTimeout; And this
Created attachment 271598 [details] [review] V2 of the Patch.
commit 0700d6875f5222b156453d9c58cd9c4d24860a13 Author: Christian König <christian.koenig@amd.com> Date: Sun Mar 2 10:30:04 2014 +0100 omx: consolidate message waiting code Add a wait_message helper function and remove all those duplicated code. https://bugzilla.gnome.org/show_bug.cgi?id=725493