GNOME Bugzilla – Bug 321962
[easyfix] gst_value_is_fixed uses gst_value_list_* on GST_TYPE_ARRAYs
Last modified: 2005-11-21 12:37:12 UTC
Please describe the problem: gst_value_is_fixed first checks for GST_VALUE_TYPE (value) == GST_TYPE_ARRAY and then uses gst_value_list_get_size on the value. That results in an error as GST_VALUE_HOLDS_LIST (value) called in gst_value_list_get_size fails. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 54987 [details] [review] easy fix
Created attachment 54991 [details] [review] substitute gst_value_list_append_value with gst_value_array_append_value in gst-plugins-base
2005-11-21 Andy Wingo <wingo@pobox.com> patch by: Alessandro Dessina <alessandro nnva org> * ext/ogg/gstoggmux.c (gst_ogg_mux_set_header_on_caps): * ext/ogg/gstoggparse.c (gst_ogg_parse_append_header) (gst_ogg_parse_chain): * ext/theora/theoraenc.c (theora_set_header_on_caps): * ext/vorbis/vorbisenc.c (gst_vorbisenc_set_header_on_caps): * ext/vorbis/vorbisparse.c (vorbis_parse_set_header_on_caps): Fix gst_value_list calls on arrays. Fixes #321962. 2005-11-21 Andy Wingo <wingo@pobox.com> patch by: Alessandro Dessina <alessandro nnva org> * gst/gstvalue.c (gst_value_is_fixed): Use gst_value_array functions to access arrays. Fixes #321962.