Summary: | [GStreamer] GRefPtr support for GstElement | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Philippe Normand <pnormand> | ||||||||
Component: | Media | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | mrobinson, webkit.review.bot | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | PC | ||||||||||
OS: | OS X 10.5 | ||||||||||
Attachments: |
|
Description
Philippe Normand
2011-02-21 04:42:32 PST
Created attachment 83148 [details]
proposed patch
Attachment 83148 [details] did not pass style-queue:
Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeListsEfl.txt', u'Sourc..." exit_code: 1
Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h:20: #ifndef header guard has wrong style, please use: WTF_GRefPtrGStreamer_h [build/header_guard] [5]
Total errors found: 1 in 6 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 83150 [details]
proposed patch
Comment on attachment 83150 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=83150&action=review > Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp:32 > +template <> void derefGPtr<GstElement>(GstElement* ptr) > +{ > + if (ptr) > + gst_object_unref(ptr); > +} There should also be a specialization for refGPtr even if it's currently unused with your changes. If that's not there g_object_ref will be used when you assign a GRefPtr. Created attachment 83455 [details]
proposed patch
Committed r79546: <http://trac.webkit.org/changeset/79546> |