[Bug 783289] New: gst_structure_from_string fails to parse some objects
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed May 31 15:21:44 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=783289
Bug ID: 783289
Summary: gst_structure_from_string fails to parse some objects
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gstreamer (core)
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: gkiagia at tolabaki.gr
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 352955
--> https://bugzilla.gnome.org/attachment.cgi?id=352955&action=edit
tests/gststructure: add unit test to verify deserialization of a stream-status
message
I came across this warning in some project and wrote a quick unit test to
verify it's an upstream bug. I have not investigated it further yet.
The test case is basically this:
Take a new stream-status GstMessage, get its GstStructure, serialize it to a
string, then try to parse this string back to a GstStructure.
Although the serialized string is ok (see the SERIALIZED line below), parsing
it fails and shows a strange, corrupt string in the warning message
Running suite(s): GstStructure
SERIALIZED: GstMessageStreamStatus,
type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_CREATE,
owner=(GstElement)"\(GstBin\)\ element1", object=(GstTask)"\(GstTask\)\ task0";
0:00:00.002331102 12023 0x564706dfc320 WARN structure
gststructure.c:1967:gst_structure_parse_field: failed to parse value
owner=(GstElement)(GstBin) element1ent1", object=(GstTask)"\(GstTask\)\ task0";
0:00:00.002404953 12023 0x564706dfc320 WARN structure
gststructure.c:2035:priv_gst_structure_parse_fields: Failed to parse field,
r=owner=(GstElement)(GstBin) element1ent1", object=(GstTask)"\(GstTask\)\
task0";
0%: Checks: 1, Failures: 1, Errors: 0
gst/gststructure.c:357:F:general:test_to_from_string_stream_status_message:0:
Assertion 'st2 != NULL' failed
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list