[Bug 797006] New: vaapidec: Requests a GstForceKeyUnit in case of parse/decode error.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 22 01:39:33 UTC 2018


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

            Bug ID: 797006
           Summary: vaapidec: Requests a GstForceKeyUnit in case of
                    parse/decode error.
    Classification: Platform
           Product: GStreamer
           Version: 1.14.0
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer-vaapi
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: matteo.valdina at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
                CC: bsreerenj at gmail.com, vjaquez at igalia.com
     GNOME version: ---

Created attachment 373421
  --> https://bugzilla.gnome.org/attachment.cgi?id=373421&action=edit
Requests GstForceKeyUnit to the upstream in case of parse/decode error.

This is a follow up of issue: https://bugzilla.gnome.org/show_bug.cgi?id=796863

Requests GstForceKeyUnit to the upstream in case of parse/decode error.

In the case of decode error, there is a change that affects other cases.
The "GstFlowret value was never initialized in some condition and so it was
undefined.

I saw by experience that it was 0 (GST_FLOW_OK) but this is a random behavior
and tied to the specific compiler/cpu/kernel and other factors.
I added a default value that it makes sense for my understanding of this
codebase. But I'm probably wrong.

At least I think it is better because it is a defined behavior.

I saw that there are other functions that have this issue like
gst_vaapidecode_push_all_decoded_frames where "ret" is returned in the default
switch with the un-initialized value.

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


More information about the gstreamer-bugs mailing list