[Bug 797277] create surface fail when reset context.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 12 01:45:14 UTC 2018


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

--- Comment #3 from Fei <fei.w.wang at intel.com> ---
(In reply to Víctor Manuel Jáquez Leal from comment #2)
> @Fei
> 
> Do you have a test that shows the problem?
> 
> What's the problem exactly?

Hi Victor, due to the licence we can't public the stream, and I put it into our
public google drive(gstreamervaapi at gmail.com) gstreamer_bug_stream folder. If
you forget the passwd, please ping me through fei.w.wang at intel.com. :)

The stream have 2 different resolution, when the resolution change, the context
and surfaces will be destroyed and re-created. This patch makes sure context is
created and available before use it to create surface. Otherwise the pipeline
will be stuck with some error. I believe any streams with 2 or more resolutions
can be reproduce this issue.

error log:
root at T:/media/# gst-launch-1.0 filesrc location=test.mpeg2 ! mpegvideoparse !
vaapimpeg2dec ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vaapidecode_mpeg2-0': gst.gl.GLDisplay=context,
gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Got context from element 'vaapidecode_mpeg2-0': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayDRM\)\ vaapidisplaydrm1";
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
0:00:00.228859761 24841      0x12204f0 ERROR                  vaapi
gstvaapidecoder_mpeg2.c:1509:gst_vaapi_decoder_mpeg2_start_frame: failed to
reset context
0:00:00.228904080 24841      0x12204f0 ERROR            vaapidecode
gstvaapidecode.c:755:gst_vaapidecode_handle_frame: decode error -1

-- 
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