<div dir="ltr"><div><div>Hi,<br><br></div>I am creating a surface in java SWT and using the window id created by the java application I used vlc to play the video on the surface. On stopping of video playback and attempting to dispose the window my application sometimes crashes. This due to faulty implementation by either by SWT or vlc or xcb. After checking the various logs I saw that on some situation vlc loads xcb-window and on other time another window type is created. Further I saw that if xcb_glx is used then my java application never crashes. Also I am using vlc-2.2.1 on a RHEL 6.6 and sometimes on core i3 processor with 2 real core and 2 simulated core for a total of 4 core hardware acceleration seems to have a bad effect with no video output although audio output is heard sometime. So I made the following changes by patching the file media_player.c with the following patch and found my application is working fine. The patch I am submitting now<br><br>diff -crB vlc-2.2.1-orig/lib/media_player.c vlc-2.2.1/lib/media_player.c<br>*** vlc-2.2.1-orig/lib/media_player.c    2015-01-17 13:20:50.000000000 +0530<br>--- vlc-2.2.1/lib/media_player.c    2015-08-21 18:59:31.000000000 +0530<br>***************<br>*** 938,945 ****<br>      assert (p_mi != NULL);<br>  <br>!     var_SetString (p_mi, "avcodec-hw", "");<br>!     var_SetString (p_mi, "vout", drawable ? "xid" : "any");<br>!     var_SetString (p_mi, "window", drawable ? "embed-xid,any" : "any");<br>      var_SetInteger (p_mi, "drawable-xid", drawable);<br>  }<br>  <br>--- 938,945 ----<br>      assert (p_mi != NULL);<br>  <br>!     var_SetString (p_mi, "avcodec-hw", "none");<br>!     var_SetString (p_mi, "vout", drawable ? "xcb_glx,any" : "any");<br>!     var_SetString (p_mi, "window", drawable ? "any" : "any");<br>      var_SetInteger (p_mi, "drawable-xid", drawable);<br>  }<br><br></div>Aswin<br></div>