<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>163000</bug_id>
          
          <creation_ts>2016-10-06 00:13:17 -0700</creation_ts>
          <short_desc>[GTK] Build fix for X11 and GStreamerGL after r183731</short_desc>
          <delta_ts>2016-10-06 03:47:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gwang Yoon Hwang">yoon</reporter>
          <assigned_to name="Gwang Yoon Hwang">yoon</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gustavo</cc>
    
    <cc>mario</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1236930</commentid>
    <comment_count>0</comment_count>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2016-10-06 00:13:17 -0700</bug_when>
    <thetext>[GTK] Build fix for X11 and GStreamerGL after r183731</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236931</commentid>
    <comment_count>1</comment_count>
      <attachid>290788</attachid>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2016-10-06 00:14:15 -0700</bug_when>
    <thetext>Created attachment 290788
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236942</commentid>
    <comment_count>2</comment_count>
      <attachid>290788</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-10-06 00:58:11 -0700</bug_when>
    <thetext>Comment on attachment 290788
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=290788&amp;action=review

&gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:267
&gt; -#endif
&gt; -
&gt; -#if PLATFORM(WAYLAND)
&gt; +#elif PLATFORM(WAYLAND)

What&apos;s exactly the build failure? I don&apos;t think this change is correct, X11 and Wayland are not mutually exclusive, so the ifdefs are correct here. Why is the display created twice? if both X11 and wayland are enabled, shared display will be either X11 or wayland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236946</commentid>
    <comment_count>3</comment_count>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2016-10-06 01:08:04 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 290788 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=290788&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:267
&gt; &gt; -#endif
&gt; &gt; -
&gt; &gt; -#if PLATFORM(WAYLAND)
&gt; &gt; +#elif PLATFORM(WAYLAND)
&gt; 
&gt; What&apos;s exactly the build failure? I don&apos;t think this change is correct, X11
&gt; and Wayland are not mutually exclusive, so the ifdefs are correct here. Why
&gt; is the display created twice? if both X11 and wayland are enabled, shared
&gt; display will be either X11 or wayland.

As you mentioned, PlatformDisplay is only created just for once.
And I misunderstood that gst_gl_display_x11_new_with_display and gst_gl_display_egl_new_with_egl_display would be executed at same time.

The build problem is, MediaPlayerPrivateGStreamerBase does not include gstgldisplay_egl.h if we are using GLX. So gst_gl_display_egl_new_with_egl_display is not visible from GSteamerBase.

I&apos;ll take a look if there is no problem to include both of gstgldisplay_x11 and gstgldisplay_egl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236952</commentid>
    <comment_count>4</comment_count>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2016-10-06 01:27:16 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; As you mentioned, PlatformDisplay is only created just for once.
&gt; And I misunderstood that gst_gl_display_x11_new_with_display and
&gt; gst_gl_display_egl_new_with_egl_display would be executed at same time.
&gt; 
&gt; The build problem is, MediaPlayerPrivateGStreamerBase does not include
&gt; gstgldisplay_egl.h if we are using GLX. So
&gt; gst_gl_display_egl_new_with_egl_display is not visible from GSteamerBase.
&gt; 
&gt; I&apos;ll take a look if there is no problem to include both of gstgldisplay_x11
&gt; and gstgldisplay_egl

There could be a build problem if the platform has only X11 or EGL.
Since gstgldisplay_x11.h includes headers of X11 and gstgldisplay_egl.h includes headers of EGL, we cannot include both of them at same time if the target does not have both.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236953</commentid>
    <comment_count>5</comment_count>
      <attachid>290788</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2016-10-06 01:28:35 -0700</bug_when>
    <thetext>Comment on attachment 290788
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=290788&amp;action=review

&gt;&gt;&gt; Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:267
&gt;&gt;&gt; +#elif PLATFORM(WAYLAND)
&gt;&gt; 
&gt;&gt; What&apos;s exactly the build failure? I don&apos;t think this change is correct, X11 and Wayland are not mutually exclusive, so the ifdefs are correct here. Why is the display created twice? if both X11 and wayland are enabled, shared display will be either X11 or wayland.
&gt; 
&gt; As you mentioned, PlatformDisplay is only created just for once.
&gt; And I misunderstood that gst_gl_display_x11_new_with_display and gst_gl_display_egl_new_with_egl_display would be executed at same time.
&gt; 
&gt; The build problem is, MediaPlayerPrivateGStreamerBase does not include gstgldisplay_egl.h if we are using GLX. So gst_gl_display_egl_new_with_egl_display is not visible from GSteamerBase.
&gt; 
&gt; I&apos;ll take a look if there is no problem to include both of gstgldisplay_x11 and gstgldisplay_egl

This is wrong because we can have both X11 and WAYLAND enabled. IIUC anyway :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236987</commentid>
    <comment_count>6</comment_count>
      <attachid>290807</attachid>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2016-10-06 03:17:46 -0700</bug_when>
    <thetext>Created attachment 290807
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236988</commentid>
    <comment_count>7</comment_count>
    <who name="Gwang Yoon Hwang">yoon</who>
    <bug_when>2016-10-06 03:18:58 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Created attachment 290807 [details]
&gt; Patch

Found much simpler solution. Just include gstdisplay_egl.h if we have EGL.
Ready for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236994</commentid>
    <comment_count>8</comment_count>
      <attachid>290807</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-10-06 03:47:01 -0700</bug_when>
    <thetext>Comment on attachment 290807
Patch

Clearing flags on attachment: 290807

Committed r206861: &lt;http://trac.webkit.org/changeset/206861&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1236995</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-10-06 03:47:06 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>290788</attachid>
            <date>2016-10-06 00:14:15 -0700</date>
            <delta_ts>2016-10-06 03:17:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-163000-20161006161101.patch</filename>
            <type>text/plain</type>
            <size>1758</size>
            <attacher name="Gwang Yoon Hwang">yoon</attacher>
            
              <data encoding="base64">U3VidmV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ICAgIGlmIChpczxQbGF0Zm9ybURpc3BsYXlXYXlsYW5kPihzaGFy
ZWREaXNwbGF5KSkKICAgICAgICAgICAgIG1fZ2xEaXNwbGF5ID0gR1NUX0dMX0RJU1BMQVkoZ3N0
X2dsX2Rpc3BsYXlfZWdsX25ld193aXRoX2VnbF9kaXNwbGF5KGRvd25jYXN0PFBsYXRmb3JtRGlz
cGxheVdheWxhbmQ+KHNoYXJlZERpc3BsYXkpLm5hdGl2ZSgpKSk7CiAjZW5kaWYK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>290807</attachid>
            <date>2016-10-06 03:17:46 -0700</date>
            <delta_ts>2016-10-06 03:47:01 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-163000-20161006191432.patch</filename>
            <type>text/plain</type>
            <size>1404</size>
            <attacher name="Gwang Yoon Hwang">yoon</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjA2ODU4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNmQ1MTk1NTUzNzIwMWUz
OWQ2MWI1NjZmMjhjM2U1NjA5MzJiODA0ZS4uNTE1ZmVkMjA3ZGVkZDdjN2Q2ZDU0MDVmNWY4ZjI4
MzU5OTFiN2JlZSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEzIEBACisyMDE2LTEwLTA2ICBHd2Fu
ZyBZb29uIEh3YW5nICA8eW9vbkBpZ2FsaWEuY29tPgorCisgICAgICAgIFtHVEtdIEJ1aWxkIGZp
eCBmb3IgWDExIGFuZCBHU3RyZWFtZXJHTCBhZnRlciByMTgzNzMxCisgICAgICAgIGh0dHBzOi8v
YnVncy53ZWJra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