Bug 58312

Summary: REGRESSION(r83561): doesn't pause in-window playback during fullscreen playback
Product: WebKit Reporter: Philippe Normand <pnormand>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
proposed patch mrobinson: review+

Description Philippe Normand 2011-04-12 03:29:54 PDT
The videoValve is not linked if fpsdisplaysink is used.
Comment 1 Philippe Normand 2011-04-12 03:32:02 PDT
Created attachment 89183 [details]
proposed patch
Comment 2 Martin Robinson 2011-04-12 07:26:24 PDT
Comment on attachment 89183 [details]
proposed patch

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

Is it possible to include a test with this change?

> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1714
>      if (!m_fpsSink) {
>          gst_bin_add(GST_BIN(m_videoSinkBin), m_webkitVideoSink);
> +        actualVideoSink = m_webkitVideoSink;
> +    }
> +

I think it makes sense to turn if (!m_fpsSink) into an else statement here.
Comment 3 Philippe Normand 2011-04-12 09:33:03 PDT
(In reply to comment #2)
> (From update of attachment 89183 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=89183&action=review
> 
> Is it possible to include a test with this change?
> 
> > 

I don't think this can be tested. The fact that we have 2 video-sinks is internal to the private media-player :/

Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1714
> >      if (!m_fpsSink) {
> >          gst_bin_add(GST_BIN(m_videoSinkBin), m_webkitVideoSink);
> > +        actualVideoSink = m_webkitVideoSink;
> > +    }
> > +
> 
> I think it makes sense to turn if (!m_fpsSink) into an else statement here.

OK. I can attach a new patch or do that tweak before landing if you r+ this.
Comment 4 Philippe Normand 2011-04-12 09:40:18 PDT
(In reply to comment #2)
> (From update of attachment 89183 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=89183&action=review
> 
> Is it possible to include a test with this change?
> 
> > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1714
> >      if (!m_fpsSink) {
> >          gst_bin_add(GST_BIN(m_videoSinkBin), m_webkitVideoSink);
> > +        actualVideoSink = m_webkitVideoSink;
> > +    }
> > +
> 
> I think it makes sense to turn if (!m_fpsSink) into an else statement here.

Hum sorry but I don't think so, finally :)
m_fpsSink can be set to 0 in 2 cases just above this code, in the if (m_fpsSink) test.

Turning this if (!m_fpsSink) to a else would require to duplicate the code, I think.
Comment 5 Martin Robinson 2011-04-13 08:41:54 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > (From update of attachment 89183 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=89183&action=review
> > Is it possible to include a test with this change?
> I don't think this can be tested. The fact that we have 2 video-sinks is internal to the private media-player :/

Alright. Please include a line in the ChangeLog explaining the lack of test, per typical WebCore ChangeLog style. :)
Comment 6 Philippe Normand 2011-04-13 08:51:37 PDT
Committed r83741: <http://trac.webkit.org/changeset/83741>