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 308067 - GST_TYPE_BUFFER crashes in gstvalue handling
GST_TYPE_BUFFER crashes in gstvalue handling
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: High critical
: 0.8.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-17 14:16 UTC by David Gerber
Modified: 2005-06-30 16:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
fixes the crash and adds a new API function (1.45 KB, patch)
2005-06-17 14:18 UTC, David Gerber
none Details | Review

Description David Gerber 2005-06-17 14:16:29 UTC
Steps to reproduce:
1. gst_caps_set_simple(caps, "codec_data", GST_TYPE_BUFFER, gstbuf, NULL); 
2. watch how gstvalue.c/gst_value_serialize_buffer(), gst_value_get_boxed()'s 
assertion fails with  failed asseration in gstvalue.c, line 891 
(g_value_get_boxed: assertion `G_VALUE_HOLDS_BOXED (value)' failed) 
 
 

Stack trace:
 

Other information:
Comment 1 David Gerber 2005-06-17 14:18:39 UTC
Created attachment 47902 [details] [review]
fixes the crash and adds a new API function

This adds a new function:

GstBuffer * gst_value_get_buffer(const GValue *value);

Which is consistent with the other gvalue functions (gst_value_get_caps(),
etc..)