<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>The same error I get running the next pipeline:</p>
<p><br>
</p>
<p><span>$ gst-launch-1.0 filesrc location=attract.mp4 ! qtdemux ! vaapih264dec ! glupload ! video/x-raw\(memory:GLMemory\),width=1366,height=768,format=RGBA ! glfilterapp ! fakesink sync=true</span></p>
<p><span></span></p>
<div>libva info: VA-API version 0.36.0<br>
libva info: va_getDriverName() returns 0<br>
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so<br>
libva info: Found init function __vaDriverInit_0_35<br>
libva info: va_openDriver() returns 0<br>
Setting pipeline to PAUSED ...<br>
libva info: VA-API version 0.36.0<br>
libva info: va_getDriverName() returns 0<br>
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so<br>
libva info: Found init function __vaDriverInit_0_35<br>
libva info: va_openDriver() returns 0<br>
Pipeline is PREROLLING ...<br>
Got context from element 'glfilterapp0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";<br>
Got context from element 'vaapidecode_h264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx1";<br>
Redistribute latency...<br>
Pipeline is PREROLLED ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
Got EOS from element "pipeline0".<br>
Execution ended after 0:00:14.600032149<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)<br>
  Major opcode of failed request:  155 ()<br>
  Minor opcode of failed request:  8<br>
  Resource id in failed request:  0x420000b<br>
  Serial number of failed request:  17<br>
  Current serial number in output stream:  1329<br>
</div>
<p></p>
<p><br>
</p>
<p>Regards</p>
<p>Jorge<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> en nombre de Jorge Fernandez Monteagudo <jorgefm@cirsa.com><br>
<b>Enviado:</b> jueves, 31 de agosto de 2017 12:54:06<br>
<b>Para:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Asunto:</b> [SENDER UNVERIFIED]Error destroying pipeline in vaapi</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;" dir="ltr">
<p>Hi all!</p>
<p><br>
</p>
<p>Attached you could find a little SDL application to render the next pipeline using OpenGL.</p>
<p><br>
</p>
<p><span>gst-launch-1.0 filesrc location=attract.avi ! avidemux ! vaapimpeg2dec ! glimagesink</span></p>
<p><br>
</p>
<p>The application plays the video file in a loop and you can press ESC to abort playing. When</p>
<p>the EOS is detected if the pipeline is set to GST_STATE_NULL I get:</p>
<p><br>
</p>
<p></p>
<div>X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)<br>
  Major opcode of failed request:  155 ()<br>
  Minor opcode of failed request:  8<br>
  Resource id in failed request:  0x420001e<br>
  Serial number of failed request:  21<br>
  Current serial number in output stream:  75<br>
</div>
<p></p>
<p><br>
</p>
<p>I've set some traces in the state-changed messages to see that going to PAUSE and</p>
<p>READY is ok, but going to NULL there is some problem...<br>
</p>
<p><br>
</p>
<p></p>
<div>message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: PLAYING -> PAUSED<br>
message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: PLAYING -> PAUSED<br>
message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: PLAYING -> PAUSED<br>
message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: PLAYING -> PAUSED<br>
message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: PLAYING -> PAUSED<br>
message: state-changed (filesrc) -- on_sync_message - filesrc changed: PLAYING -> PAUSED<br>
message: state-changed (pipeline) -- on_sync_message - pipeline changed: PLAYING -> PAUSED<br>
message: state-changed (sink) -- on_sync_message - sink changed: PLAYING -> PAUSED<br>
message: state-changed (sink) -- on_sync_message - sink changed: PLAYING -> READY<br>
message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: PAUSED -> READY<br>
message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: PAUSED -> READY<br>
message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: PAUSED -> READY<br>
message: state-changed (glimagesinkbin0) -- on_sync_message - glimagesinkbin0 changed: PLAYING -> READY<br>
message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: PAUSED -> READY<br>
message: stream-status (sink) -- <br>
message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: PAUSED -> READY<br>
message: state-changed (filesrc) -- on_sync_message - filesrc changed: PAUSED -> READY<br>
message: state-changed (pipeline) -- on_sync_message - pipeline changed: PAUSED -> READY<br>
message: state-changed (sink) -- on_sync_message - sink changed: READY -> NULL<br>
message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: READY -> NULL<br>
message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: READY -> NULL<br>
message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: READY -> NULL<br>
message: state-changed (glimagesinkbin0) -- on_sync_message - glimagesinkbin0 changed: READY -> NULL<br>
message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: READY -> NULL<br>
message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: READY -> NULL<br>
message: state-changed (filesrc) -- on_sync_message - filesrc changed: READY -> NULL<br>
</div>
<p></p>
<p><br>
</p>
<p>Anybody can help me? <span>I'm using gstreamer 1.12.2.</span> I'm trying to develop a little video player using VAAPI, gstreamer and rendering</p>
<p>in a OpenGL texture.</p>
<p><br>
</p>
<p>Regards</p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>
</body>
</html>