<?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>244003</bug_id>
          
          <creation_ts>2022-08-16 11:48:08 -0700</creation_ts>
          <short_desc>[GStreamer][MediaStream] Leverage GStreamerCapturer on mock sources</short_desc>
          <delta_ts>2023-06-17 07:31:05 -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>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=258237</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>235885</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">philn</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1891713</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-08-16 11:48:08 -0700</bug_when>
    <thetext>That would allow us to have the non-mock code path tested. Currently mock sources use a separate path, which is not great.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961561</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2023-06-14 09:01:53 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/14957</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962137</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-16 10:13:58 -0700</bug_when>
    <thetext>Committed 265250@main (79141ab69a81): &lt;https://commits.webkit.org/265250@main&gt;

Reviewed commits have been landed. Closing PR #14957 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962138</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-16 10:14:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/110906642&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962226</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-06-17 07:06:27 -0700</bug_when>
    <thetext>So I can&apos;t build anymore:

[26/131] Linking CXX executable bin/TestWebKitAPI/TestWebCore
FAILED: bin/TestWebKitAPI/TestWebCore 
: &amp;&amp; /usr/lib64/ccache/clang++ -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -g -O0 -fno-strict-aliasing -fno-exceptions -fno-rtti -O2 -g -DNDEBUG -L/home/mcatanzaro/Projects/GNOME/install/lib -Wl,--disable-new-dtags @CMakeFiles/TestWebCore.rsp -o bin/TestWebKitAPI/TestWebCore  &amp;&amp; :
/usr/bin/ld: Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-62.cpp.o: in function `operator()&apos;:
/home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp:117: undefined reference to `webkit_mock_device_provider_get_type()&apos;
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

[27/131] Linking CXX shared library lib/libwebkitgtk-6.0.so.4.2.1
FAILED: lib/libwebkitgtk-6.0.so.4.2.1 
: &amp;&amp; /usr/lib64/ccache/clang++ -fPIC -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -g -O0 -fno-strict-aliasing -fno-exceptions -fno-rtti -O2 -g -DNDEBUG  -Wl,--no-undefined -L/home/mcatanzaro/Projects/GNOME/install/lib -Wl,--disable-new-dtags -shared -Wl,-soname,libwebkitgtk-6.0.so.4 -o lib/libwebkitgtk-6.0.so.4.2.1 @CMakeFiles/WebKit.rsp  &amp;&amp; :
/usr/bin/ld: Source/WebCore/CMakeFiles/WebCore.dir/./__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-62.cpp.o: in function `operator()&apos;:
/home/mcatanzaro/Projects/WebKit/Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp:117: undefined reference to `webkit_mock_device_provider_get_type()&apos;
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)

I thought that adding WEBCORE_EXPORT to the declaration of webkit_mock_device_provider_get_type() in GStreamerMockDeviceProvider.h would work. But that made no difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962230</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-06-17 07:21:58 -0700</bug_when>
    <thetext>Are you disabling GSTREAMER_WEBRTC or using other custom cmake options?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962231</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-06-17 07:22:50 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #5)
&gt; Are you disabling GSTREAMER_WEBRTC or using other custom cmake options?

I&apos;m asking because i&apos;ve just noticed the ifdefs don&apos;t match between the provider .h and .cpp files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962234</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-06-17 07:31:05 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #5)
&gt; Are you disabling GSTREAMER_WEBRTC or using other custom cmake options?

No, but GSTREAMER_WEBRTC is disabled by default and I have not enabled it. I missed that the preprocessor guards were messed up. Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>