Re: [Spice-devel] [PATCH v2 1/2] display-gst: small refactor get_decoded_frame()

2019-01-25 Thread Frediano Ziglio
> From: Victor Toso > > Small refactor to make each code block a bit more obvious. > > This code should (1) find the @buffer in the queue; (2) remove all old > elements from queue. That perfectly fit in two loops in sequence, but > they don't need to be nested and they don't need to use the same

[Spice-devel] [PATCH v2 1/2] display-gst: small refactor get_decoded_frame()

2019-01-24 Thread Victor Toso
From: Victor Toso Small refactor to make each code block a bit more obvious. This code should (1) find the @buffer in the queue; (2) remove all old elements from queue. That perfectly fit in two loops in sequence, but they don't need to be nested and they don't need to use the same pointer (gstf