GNOME Bugzilla – Bug 672637
no compare function for GstSample in gstvalue.c
Last modified: 2012-06-23 16:06:38 UTC
With rhythmbox port to 0.11 (and local fixes not yet submitted) I get : unable to compare values of type GstSample. Indeed there is no compare function in gstreamer gstvalue.c. Backtrace of where the issue is triggered:
+ Trace 229934
Created attachment 210410 [details] [review] initial compare/serialize/deserialize for gstsample This is gross though might save some time. Needs work (the comparison only happens on GstBuffer, the serialize/deserialize do not manage GstSegment item of the GstSample)
Created attachment 210424 [details] [review] initial compare/serialize/deserialize for gstsample v2 V2- Dup the strings and allocate dynamically.
Some comments: - reuse the GstBuffer compare function instead of copying it. Make a new compare_buffer() function and call it from gst_value_compare_buffer() and gst_value_compare_sample() - Reuse the (de)serialize buffer code instead of copying it around. Why do you need (de)serialisation?
Alban, can you please provide updated patch ?
commit bc28ebf08d2be4d8cc05b3c5e8ca1826f7187be2 Author: Tim-Philipp Müller <tim@centricular.net> Date: Sat Jun 23 16:59:10 2012 +0100 sample: add compare function for GstSample Should make gst_tag_list_is_equal() work properly with image tags. https://bugzilla.gnome.org/show_bug.cgi?id=672637 commit 533ecb884007a167ee5735385d7cb4949b8273f1 Author: Tim-Philipp Müller <tim@centricular.net> Date: Sat Jun 23 16:30:03 2012 +0100 value: fix buffer compare function