Re: [Spice-devel] [PATCH v6 16/26] server: Give up after a while if GStreamer cannot handle the video

2015-10-26 Thread Francois Gouget
On Thu, 22 Oct 2015, Christophe Fergeau wrote: [...] > > @@ -1136,6 +1157,13 @@ static int gst_encoder_encode_frame(VideoEncoder > > *video_encoder, > > if (rc == VIDEO_ENCODER_FRAME_ENCODE_DONE) { > > rc = pull_compressed_buffer(encoder, video_buffer); > > #ifdef DO_ZERO_COPY > >

Re: [Spice-devel] [PATCH v6 16/26] server: Give up after a while if GStreamer cannot handle the video

2015-10-22 Thread Christophe Fergeau
On Wed, Oct 14, 2015 at 05:33:07PM +0200, Francois Gouget wrote: > This typically happens when sending very small frames (less than > 16 pixels in one dimension) to the x264enc encoder. > This avoids repeatedly wasting time rebuilding the pipeline. > > Signed-off-by: Francois Gouget

[Spice-devel] [PATCH v6 16/26] server: Give up after a while if GStreamer cannot handle the video

2015-10-14 Thread Francois Gouget
This typically happens when sending very small frames (less than 16 pixels in one dimension) to the x264enc encoder. This avoids repeatedly wasting time rebuilding the pipeline. Signed-off-by: Francois Gouget --- server/gstreamer_encoder.c | 48