Bug 164709
Summary: | [GStreamer] video sink management improvements | ||
---|---|---|---|
Product: | WebKit | Reporter: | Philippe Normand <pnormand> |
Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | alex, bugs-noreply, calvaris, cgarcia, pnormand |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Philippe Normand
+++ This bug was initially created as a clone of Bug #164585 +++
Quoting Xabier:
"> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerOwr.cpp:343
> + GstElement* sink;
This needs to be GRefPtr, why?
createGLAppSink and gst_bin_new return a floating ref.
g_object_get_ returns a hard ref.
I didn't dig into the code of g_object_new/set to know what happens with an object passed as argument to the constructor, if the ref is sinked or not, but g_object_get returns a hard ref so we need to change this.
I am going thru all this and even with this naïve code, the ref counting is incredibly hard to follow :) Not saying that is wrong or that there is another better way to do, just stating the fact, specially because OWR is undocumented and you have to check the code directly
"
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Philippe Normand
OpenWebRTC support was removed. Please reopen if this issue happens elsewhere.