Ticket #1218 (new defect)

Opened 4 years ago

Last modified 3 years ago

Gstreamer Structures and Caps: parent_refcount == NULL

Reported by: guest Owned by: pgavin
Priority: normal Milestone:
Component: gstreamer Version: 0.11.0
Keywords: Structure, Caps, parent_refcount Cc: john.obbele@…, gtk2hs-bug-tracker@…

Description

I would like to create a capability gobject as described in [0] or in [1] but my Haskell program is triggering GStreamer-CRITICAL errors:

(<unknown>:6404): GStreamer-CRITICAL **: gst_caps_append_structure: assertion `structure->parent_refcount == NULL' failed EMPTY

attached is a sample C program and its Haskell counterpart.

[0]: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html [1]: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html#gst-app-src-set-caps

Attachments

main.c (0.7 kB) - added by guest 4 years ago.
Reference C program
GStreamer.hs (1.0 kB) - added by guest 4 years ago.
Sample Haskell program

Change History

Changed 4 years ago by guest

Reference C program

Changed 4 years ago by guest

Sample Haskell program

  Changed 4 years ago by guest

  • version 0.11.0 deleted

  Changed 4 years ago by guest

  • version set to 0.11.0
  • milestone 0.11.0 deleted

in reply to: ↑ description   Changed 3 years ago by guest

  • cc gtk2hs-bug-tracker@… added

I hand the same problem in my code but the complaint was in regard to gst_structure_free, so

(<unknown>:5371): GStreamer-CRITICAL **: gst_structure_free: assertion `structure->parent_refcount == NULL' failed

I dug up the problem, fixed the code and with the modification the above code works properly also. The fix was really trivial so i don't know if it was really a bug or meant to be like this to prevent something else, less obvious, to happen.

Should i post the fix here so that someone can take a look ? if not, where is the repository for gstreamer so i can "darcs add" the fix and someone can look at it.

Thank you, Flaviu Andrei Csernik

fcsernik@…

Note: See TracTickets for help on using tickets.