Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r221781 - [GStreamer] Add GRefPtr specializations for GstGLDisp…
…lay, GstGLContext https://bugs.webkit.org/show_bug.cgi?id=176543 Reviewed by Xabier Rodriguez-Calvar. Both GstGLDisplay and GstGLContext inherit from GstObject, meaning gst_object_ref_sink() and gst_object_unref() should be used for incrementing and decrementing reference count. Template specializations for the adoptGRef(), refGPtr() and derefGPtr() are added for both types, preventing GRefPtr<> from falling back to using g_object_ref() and g_object_unref() for reference count modification purposes. * platform/graphics/gstreamer/GRefPtrGStreamer.cpp: (WTF::adoptGRef): (WTF::refGPtr<GstGLDisplay>): (WTF::derefGPtr<GstGLDisplay>): (WTF::refGPtr<GstGLContext>): (WTF::derefGPtr<GstGLContext>): * platform/graphics/gstreamer/GRefPtrGStreamer.h:
- Loading branch information
1 parent
4ade207
commit 7028475
Showing
3 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters