[Bug 757004] qt: DeviceMonitor support

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Oct 29 00:44:47 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=757004

--- Comment #4 from Pavel Bludov <pbludov at altergeo.ru> ---
(In reply to Olivier CrĂȘte from comment #3)
> the properties are just returns as a GstStructure that you own, there is no
> sharing there.

Yes, i'm already know it. The problem is on QtGst side.
QGst::StructurePtr is 

    typedef QSharedPointer<SharedStructure> StructurePtr;

And QGst::SharedStructure requires an owner object to addref him.

class QTGSTREAMER_EXPORT SharedStructure : public Structure
{
public:
    virtual ~SharedStructure();

    /*! \returns a deep copy of the structure */
    Structure copy() const;

private:
    //Only these classes can call our constructor, others should use a
StructurePtr passed to them
    friend class Caps;
    friend class Message;
    friend class Event;
    friend class Query;

    struct Data;

    QTGSTREAMER_NO_EXPORT
    SharedStructure(Data *data);
    QTGSTREAMER_NO_EXPORT
    static StructurePtr fromMiniObject(GstStructure *structure, const
MiniObjectPtr & parent);
    QTGSTREAMER_NO_EXPORT
    static StructurePtr fromCaps(GstStructure *structure, const CapsPtr &
parent);

    Q_DISABLE_COPY(SharedStructure);
};

I hope that George Kiagiadakis will find a bit of its time to look at it.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list