compile error: duplicating Structure instance, use unowned variable or explicitly invoke copy method

Bug #1248482 reported by Pim Vullers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Audience
Fix Released
Medium
Pim Vullers

Bug Description

When trying to compile audience from trunk I get the following error:

/tmp/portage/media-video/audience-9999/work/audience-9999/Audience/Widgets/VideoPlayer.vala:327.67-327.75: error: duplicating Structure instance, use unowned variable or explicitly invoke copy method
                el.post_message (new Gst.Message.application (el, structure));
                                                                  ^^^^^^^^^

** (valac-0.22:23023): CRITICAL **: vala_ccode_function_call_add_argument: assertion `expr != NULL' failed
/tmp/portage/media-video/audience-9999/work/audience-9999/Audience/Widgets/VideoPlayer.vala:332.67-332.75: error: duplicating Structure instance, use unowned variable or explicitly invoke copy method
                el.post_message (new Gst.Message.application (el, structure));
                                                                  ^^^^^^^^^

** (valac-0.22:23023): CRITICAL **: vala_ccode_function_call_add_argument: assertion `expr != NULL' failed
Compilation failed: 2 error(s), 117 warning(s)
make[2]: *** [Audience/Audience.c] Error 1
make[2]: Leaving directory `/tmp/portage/media-video/audience-9999/work/audience-9999_build'
make[1]: *** [CMakeFiles/audience.dir/all] Error 2
make[1]: Leaving directory `/tmp/portage/media-video/audience-9999/work/audience-9999_build'
make: *** [all] Error 2

This is with vala 0.22.0

Revision history for this message
Pim Vullers (pimvullers) wrote :

The attached patch solves the problem for me. Please verify and apply to trunk.

Changed in audience:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Pim Vullers (pimvullers)
Cody Garver (codygarver)
Changed in audience:
milestone: none → isis-beta1
Pim Vullers (pimvullers)
Changed in audience:
status: In Progress → Fix Committed
Changed in audience:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.