| Summary: | [GStreamer] the GstPlayFlags enum diverged from upstream | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Philippe Normand <pnormand> | ||||||
| Component: | Platform | Assignee: | Xabier Rodríguez Calvar <calvaris> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | calvaris, cgarcia, commit-queue, eric.carlson, glenn, gustavo, jer.noble, menard, mrobinson, philipj, sergio, vjaquez | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Philippe Normand
2014-02-17 23:40:09 PST
This is going to be fun to support. Created attachment 224521 [details]
Patch
Comment on attachment 224521 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=224521&action=review > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:170 > + GFlagsClass* flagsClass = static_cast<GFlagsClass*>(g_type_class_ref(g_type_from_name("GstPlayFlags"))); I was thinking of caching this by making it static. What do you think, Phil? Comment on attachment 224521 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=224521&action=review > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:168 > +static unsigned getGstPlaysFlag(const char* nick) Perhaps this could be moved to GStreamerUtilities >> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:170 >> + GFlagsClass* flagsClass = static_cast<GFlagsClass*>(g_type_class_ref(g_type_from_name("GstPlayFlags"))); > > I was thinking of caching this by making it static. What do you think, Phil? Ok but then no unref below I suppose :) Created attachment 224606 [details]
Patch
(In reply to comment #4) > > +static unsigned getGstPlaysFlag(const char* nick) > > Perhaps this could be moved to GStreamerUtilities Done. > >> + GFlagsClass* flagsClass = static_cast<GFlagsClass*>(g_type_class_ref(g_type_from_name("GstPlayFlags"))); > > > > I was thinking of caching this by making it static. What do you think, Phil? > > Ok but then no unref below I suppose :) Of course, done. Comment on attachment 224606 [details] Patch Clearing flags on attachment: 224606 Committed r164362: <http://trac.webkit.org/changeset/164362> All reviewed patches have been landed. Closing bug. |