<?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>256428</bug_id>
          
          <creation_ts>2023-05-07 03:13:52 -0700</creation_ts>
          <short_desc>[GStreamer][MSE] Decoder sometimes receives caps event before stream-start</short_desc>
          <delta_ts>2024-04-19 06:22:42 -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>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">philn</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cadubentzen</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1953492</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-05-07 03:13:52 -0700</bug_when>
    <thetext>And that triggers a crash in the recently added player codecProbe. 

operator():&lt;MSE-media-player-5&gt; Setting codec for stream (null) to avc1.64002A

Reproduces flakily on release builds (wasn&apos;t able to reproduce this on debug) when loading  https://interbrand.com/

For now I&apos;ll add a workaround/warning. This codec probe is not critically important, but there&apos;s a bug to dive in here, caps events should not reach a pad before stream-start.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953493</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2023-05-07 03:19:01 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13548</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953640</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-08 04:30:19 -0700</bug_when>
    <thetext>Committed 263791@main (c49bd915d945): &lt;https://commits.webkit.org/263791@main&gt;

Reviewed commits have been landed. Closing PR #13548 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953641</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-08 04:31:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/109034676&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1953642</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-05-08 04:40:01 -0700</bug_when>
    <thetext>This needs a proper patch...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958032</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-05-25 14:34:22 -0700</bug_when>
    <thetext>(This was on the backport list for 2.40, but it depends on 263585@main which has many conflicts, so I decided not to cherry-pick it.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006342</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-01-20 04:40:18 -0800</bug_when>
    <thetext>(In reply to Philippe Normand from comment #4)
&gt; This needs a proper patch...

This works now, I can&apos;t trigger the warning anymore...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029793</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Bentzen">cadubentzen</who>
    <bug_when>2024-04-19 06:22:42 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #6)
&gt; (In reply to Philippe Normand from comment #4)
&gt; &gt; This needs a proper patch...
&gt; 
&gt; This works now, I can&apos;t trigger the warning anymore...

I can trigger this 100% of the time with media/media-source/media-source-abort-resets-parser.html in release mode (the test times out due to a deadlock as well, fwiw).

I&apos;m working on fixing to that test, and with my current WIP solution, this warning also goes away. But the fix isn&apos;t quite ready to be merged yet. (bug 272975)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>