Summary: | [GStreamer] report playback statistics | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Philippe Normand <pnormand> | ||||||||
Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | PC | ||||||||||
OS: | OS X 10.5 | ||||||||||
Attachments: |
|
Description
Philippe Normand
2011-04-07 05:56:06 PDT
Created attachment 88622 [details]
proposed patch
Attachment 88622 [details] did not pass style-queue:
Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/manual-tests/video-statistics.html:70: Line contains tab character. [whitespace/tab] [5]
Source/WebCore/manual-tests/video-statistics.html:71: Line contains tab character. [whitespace/tab] [5]
Source/WebCore/manual-tests/video-statistics.html:72: Line contains tab character. [whitespace/tab] [5]
Source/WebCore/manual-tests/video-statistics.html:73: Line contains tab character. [whitespace/tab] [5]
Total errors found: 4 in 4 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 88623 [details]
proposed patch
Comment on attachment 88623 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=88623&action=review > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1003 > + gst_object_replace((GstObject**) &m_webkitAudioSink, (GstObject*) element.get()); Please use a C++ style cast here. > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1677 > + // The verbose property has been added in -bad 0.10.22. Making > + // this whole code depend on it because we don't want > + // fpsdiplaysink to spit data on stdout. > + GstElementFactory* factory = GST_ELEMENT_FACTORY(GST_ELEMENT_GET_CLASS(m_fpsSink)->elementfactory); > + if (gst_plugin_feature_check_version(GST_PLUGIN_FEATURE(factory), 0, 10, 22)) { > + g_object_set(m_fpsSink, "verbose", FALSE , NULL); Will this affect the required gstreamer version since the property only exists >= 0.10.22? > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1679 > + // turn off text overlay unless logging is enabled. turn => Turn (In reply to comment #4) > > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1677 > > + // The verbose property has been added in -bad 0.10.22. Making > > + // this whole code depend on it because we don't want > > + // fpsdiplaysink to spit data on stdout. > > + GstElementFactory* factory = GST_ELEMENT_FACTORY(GST_ELEMENT_GET_CLASS(m_fpsSink)->elementfactory); > > + if (gst_plugin_feature_check_version(GST_PLUGIN_FEATURE(factory), 0, 10, 22)) { > > + g_object_set(m_fpsSink, "verbose", FALSE , NULL); > > Will this affect the required gstreamer version since the property only exists >= 0.10.22? > We don't depend on specific -bad version. Actually we don't even check for its presence at configure time. If a suitable -bad version is not available at runtime the dropped/rendered frame counters will always remain at 0. BTW we depend on this fpsdisplaysink patch: https://bugzilla.gnome.org/show_bug.cgi?id=647030 It'd be wise to wait it to be commited before pushing this patch. Created attachment 88979 [details]
proposed patch
Committed r83561: <http://trac.webkit.org/changeset/83561> |