[Bug 762509] vaapidecoder: h264: decoder stores too many pictures in the DPB before output

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 14 14:52:52 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=762509

--- Comment #44 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
I was thinking in another approach to activate this 'low-latency' mode.
Assuming that this case is going to happen mostly with live sources, why not
enable it when upstream reports the source as a live one?

    query = gst_query_new_latency ();
    is_live = FALSE;
    /* Check if upstream is live. If it isn't we can enable frame based
     * threading, which is adding latency */
    if (gst_pad_peer_query (GST_VIDEO_DECODER_SINK_PAD (vdec), query)) {
      gst_query_parse_latency (query, &is_live, NULL, NULL);
    }
    gst_query_unref (query);

    gst_vaapi_decoder_h264_set_low_latency (decoder, is_live);

What do you think?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the gstreamer-bugs mailing list