After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 579183 - freshly created QUERY_SEEKING is immutable
freshly created QUERY_SEEKING is immutable
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal blocker
: 0.10.15
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-16 16:44 UTC by Mark Nauwelaerts
Modified: 2009-04-17 09:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (308 bytes, patch)
2009-04-16 16:51 UTC, Mark Nauwelaerts
committed Details | Review

Description Mark Nauwelaerts 2009-04-16 16:44:41 UTC
>>> q = gst.query_new_seeking (gst.FORMAT_TIME)
>>> q.__grefcount__
2

Since the refcount is not 1, the mini-object is considered immutable, essentially rendering the query-object useless for actual querying as no element can ever properly modify it.
Comment 1 Mark Nauwelaerts 2009-04-16 16:51:02 UTC
Created attachment 132770 [details] [review]
Patch

Align query_new_seeking definition with other query wrapper definitions.
Comment 2 Mark Nauwelaerts 2009-04-17 09:39:07 UTC
commit e9d2003af5ebcbd9bea9acecbcfa0950e23af378
Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Date:   Fri Apr 17 11:33:18 2009 +0200

    query_new_seeking wrapper must return query with refcount 1.  Fixes #579183.