<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: XCreateWindow request fails for imxeglvivsink plugin</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730619#M113638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naseeb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to compile gstreamer vs imxeglvivsink. In you 14.04 is should be compiled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2018 16:06:11 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2018-04-16T16:06:11Z</dc:date>
    <item>
      <title>XCreateWindow request fails for imxeglvivsink plugin</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730618#M113637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hardware and Software details:&lt;BR /&gt;Board: wb quad Rev C1&lt;BR /&gt;Image: wandboard-all-ubuntu-16.04-sdcard-20160520.img downloaded from wandboard site:(&lt;A href="http://download.wandboard.org/wandboard-imx6/ubuntu-16.04/"&gt;http://download.wandboard.org/wandboard-imx6/ubuntu-16.04/&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Drivers and gstreamer(1.8.0) plugins are already installed with the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debug imxeglvivsink plugin using source code gstreamer-imx&amp;nbsp; from github and found that XCreateWindow request fails to create window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain what i am trying to do.&lt;/P&gt;&lt;P&gt;1. I create a GTK+ window using&amp;nbsp;&lt;EM&gt;gtk_window_new (GTK_WINDOW_TOPLEVEL);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;2. Then add drawing area using &lt;SPAN style="text-decoration: underline; font-style: italic;"&gt;gtk api gtk_drawing_area_new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.Once video area is "realized", get window handle using GDK_WINDOW_XID (window) and store in variable video_window_handle( i will use it later).&lt;/P&gt;&lt;P&gt;4. Inside gstreamer bus sync handler i use video_window_handle to set it as overlay using gstreamer api &lt;EM&gt;gst_video_overlay_set_window_handle(). &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;5. In imxeglvivsink, XCreateWindow api uses video_window_handle as parent window. AND here everything goes wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged further using xtrace utility, CreateWindow request fails with BADMATCH. I check the visuals for video_window_handle(window created using GTK+GDK) its value is 0xC7 and default X value it is 0x21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand where to configure GDK to use system defalut X visual so that parameter match for parent and child window and XCreateWindow gets successful.&lt;/P&gt;&lt;P&gt;I have searched it all the place but not found any such setting. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ubuntu-14.04 i did not do any such setting, there by default visual match for both GTK window and XCreateWindow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know in case any further information is required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 13:09:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730618#M113637</guid>
      <dc:creator>naseebpanghal</dc:creator>
      <dc:date>2018-04-13T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: XCreateWindow request fails for imxeglvivsink plugin</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730619#M113638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naseeb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to compile gstreamer vs imxeglvivsink. In you 14.04 is should be compiled&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 16:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730619#M113638</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-04-16T16:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: XCreateWindow request fails for imxeglvivsink plugin</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730620#M113639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bio_TICFSL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I am sorry. i don't get your answer. Do you want me to compile gstreamer-imx on my 14.04 machine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;In file: egl_platform_x11.c and function: gst_imx_egl_viv_sink_egl_platform_init_window, i modified&lt;/P&gt;&lt;P&gt;XCreateWindow parameters visual_info-&amp;gt;depth to CopyFromParent and visual_info-&amp;gt;visual to CopyFromParent and compile gstramer-imx on 16.04 itself. By these changes imxeglvivsink is able to render on the child window.&lt;/P&gt;&lt;P&gt;But i don't want to change the gstreamer-imx code. I want, if GDK settings are configured such a way that x-window gets created with visual_info-&amp;gt;depth&amp;nbsp; and visual_info-&amp;gt;visual&amp;nbsp; itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i am able to clarify what i want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:25:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730620#M113639</guid>
      <dc:creator>naseebpanghal</dc:creator>
      <dc:date>2018-04-17T12:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: XCreateWindow request fails for imxeglvivsink plugin</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730621#M113640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I strongly feel there must be some configuration file to change GDK default visual. Time being&amp;nbsp;I have changed GDK Visual using the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #242729; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;static int change_visual(GtkWidget *widget) {&amp;nbsp;&amp;nbsp; int nitems_return;&amp;nbsp;&amp;nbsp; Display *x_display = XOpenDisplay(NULL);&amp;nbsp;&amp;nbsp; Visual *x_visual = XDefaultVisual(x_display, DefaultScreen(x_display));&amp;nbsp;&amp;nbsp;&amp;nbsp; GdkScreen *gdk_screen = gdk_screen_get_default();&amp;nbsp;&amp;nbsp; GList *gdk_visual_list = gdk_screen_list_visuals(gdk_screen);&amp;nbsp;&amp;nbsp; GList *l;&amp;nbsp;&amp;nbsp; for (l = gdk_visual_list; l != NULL; l = l-&amp;gt;next)&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Visual *temp = gdk_x11_visual_get_xvisual((GdkVisual *)l-&amp;gt;data);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(temp-&amp;gt;visualid == x_visual-&amp;gt;visualid) break;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; //l is pointing the visual which is similar to system x visual. Lets change it.&amp;nbsp;&amp;nbsp; gtk_widget_set_visual (widget, (GdkVisual *)l-&amp;gt;data);&amp;nbsp;&amp;nbsp; return 0; }&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 07:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/XCreateWindow-request-fails-for-imxeglvivsink-plugin/m-p/730621#M113640</guid>
      <dc:creator>naseebpanghal</dc:creator>
      <dc:date>2018-04-23T07:28:08Z</dc:date>
    </item>
  </channel>
</rss>

