Hacky patch to display frames ASAP --- src/channel-display-gst.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c index 281a936..644d94a 100644 --- a/src/channel-display-gst.c +++ b/src/channel-display-gst.c @@ -183,7 +183,7 @@ static void schedule_frame(SpiceGstDecoder *decoder) break; } - if (spice_mmtime_diff(now, gstframe->frame->mm_time) < 0) { + if (0 && spice_mmtime_diff(now, gstframe->frame->mm_time) < 0) { decoder->timer_id = g_timeout_add(gstframe->frame->mm_time - now, display_frame, decoder); } else if (decoder->display_frame && !decoder->pending_samples) { @@ -589,7 +589,8 @@ static gboolean spice_gst_decoder_queue_frame(VideoDecoder *video_decoder, GST_BUFFER_DURATION(buffer) = GST_CLOCK_TIME_NONE; GST_BUFFER_DTS(buffer) = GST_CLOCK_TIME_NONE; - GST_BUFFER_PTS(buffer) = gst_clock_get_time(decoder->clock) - gst_element_get_base_time(decoder->pipeline) + ((uint64_t)MAX(0, latency)) * 1000 * 1000; +// GST_BUFFER_PTS(buffer) = gst_clock_get_time(decoder->clock) - gst_element_get_base_time(decoder->pipeline) + ((uint64_t)MAX(0, latency)) * 1000 * 1000; + GST_BUFFER_PTS(buffer) = gst_clock_get_time(decoder->clock) - gst_element_get_base_time(decoder->pipeline); g_coroutine_condition_wait(g_coroutine_self(), wait_push, decoder); -- 2.14.3 _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel