Bug 103151

Summary: [GStreamer] verify if GStreamer was previously initialized
Product: WebKit Reporter: Víctor M. Jáquez L. <vjaquez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo, menard, mrobinson, pnormand, webkit-ews, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Víctor M. Jáquez L.
Reported 2012-11-23 09:48:25 PST
by using gst_is_initialized() in initializeGStreamer() This may be useful for WK1, so the the application can initialize GStreamer before.
Attachments
Patch (4.14 KB, patch)
2012-11-23 10:01 PST, Víctor M. Jáquez L.
no flags
Patch (4.40 KB, patch)
2012-11-26 11:10 PST, Víctor M. Jáquez L.
no flags
Patch (4.44 KB, patch)
2012-11-27 07:02 PST, Víctor M. Jáquez L.
no flags
Víctor M. Jáquez L.
Comment 1 2012-11-23 10:01:15 PST
Early Warning System Bot
Comment 2 2012-11-23 10:06:25 PST
Early Warning System Bot
Comment 3 2012-11-23 10:06:58 PST
Víctor M. Jáquez L.
Comment 4 2012-11-23 11:01:29 PST
What version of GStreamer does Qt port use? The gst_is_initialized() appeared in 0.10.31 http://gstreamer.freedesktop.org/data/doc/gstreamer/0.10.36/gstreamer/html/gstreamer-Gst.html#gst-is-initialized
Alexis Menard (darktears)
Comment 5 2012-11-23 11:17:10 PST
(In reply to comment #4) > What version of GStreamer does Qt port use? > > The gst_is_initialized() appeared in 0.10.31 > > http://gstreamer.freedesktop.org/data/doc/gstreamer/0.10.36/gstreamer/html/gstreamer-Gst.html#gst-is-initialized If the EWS is the same machine as http://build.webkit.org/buildslaves/szeged-linux-1 then it's Debian Squeeze (6.0) so 0.10.30
Philippe Normand
Comment 6 2012-11-24 00:30:54 PST
Comment on attachment 175824 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=175824&action=review Looks good overall, have a look at the other ChangeLog entries to see how they're structured :) > Source/WebCore/ChangeLog:5 > + Verify if GStreamer was previously initialized > + > + The patch also contains the proof of concept for GtkLaunch Please move this down the Reviewed by line. Also it's GtkLauncher. And maybe you can explain why the same is not done for the WK2 MiniBrowser. > Source/WebCore/ChangeLog:12 > + Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!). This one should be replaced by the 2 lines above. > Source/WebCore/ChangeLog:14 > + No new tests (OOPS!). Usually for a small patch like this without any impact on the tests we state something like "No new tests, existing media tests cover this change." > Source/WebCore/platform/graphics/gstreamer/GStreamerUtilities.cpp:32 > + if (gst_is_initialized ()) We don't allow space between the function name and the parenthesis, usually. Maybe the style bot can check that. Also as this is an API introduced in 0.10.31 and we require 0.10.30 in configure.ac it'd be nice to wrap this code in a #if GST_CHECK_VERSION(0, 10, 31) block. > Source/WebCore/platform/graphics/gstreamer/GStreamerUtilities.cpp:33 > + return true; A blank line wouldn't hurt after this one :) > Tools/ChangeLog:5 > + Verify if GStreamer was previously initialized > + > + The patch also contains the proof of concept for GtkLaunch Well the same apply to this ChangeLog and please don't copy-paste from the other one :) It'd be fine if this entry mentions only the change related to the GtkLauncher.
Víctor M. Jáquez L.
Comment 7 2012-11-26 11:10:18 PST
Philippe Normand
Comment 8 2012-11-26 11:25:20 PST
Comment on attachment 176038 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176038&action=review Ok almost perfect! > Source/WebCore/ChangeLog:17 > + No new tests (OOPS!). I think the commit queue will not like the OOPS. I think I mentioned previously that you can state existing media tests cover this change. > Source/WebCore/platform/graphics/gstreamer/GStreamerUtilities.cpp:33 > + if (gst_is_initialized ()) Can you please remove the space after the function name? :) > Tools/ChangeLog:14 > + This approach is not valid for MiniBrowser because it uses WebKit2, > + where the GStreamer backend lives in the web process, which is > + different from the UI process. Nice explanation!
Víctor M. Jáquez L.
Comment 9 2012-11-27 07:02:14 PST
Víctor M. Jáquez L.
Comment 10 2012-11-27 07:03:03 PST
(In reply to comment #8) > (From update of attachment 176038 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=176038&action=review > > Ok almost perfect! Hi Phil! Thanks again for the review. I hope now everything correct.
WebKit Review Bot
Comment 11 2012-11-27 07:59:23 PST
Comment on attachment 176260 [details] Patch Clearing flags on attachment: 176260 Committed r135863: <http://trac.webkit.org/changeset/135863>
WebKit Review Bot
Comment 12 2012-11-27 07:59:27 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.