• François Laignel's avatar
    Fix building argument-less messages · 658be807
    François Laignel authored
    Building an argument-less message such as eos yields an assertion failure due to the inner structure being null. The short term solution consists in checking that the inner `structure` is not `null` before attempting to insert `other_fields`. The consequence is that `others_fields` defined for argument-less messages will be ignored. A correction will be applied when GStreamer 1.14 is released thank to the introduction of `gst_message_writable_structure` (see https://bugzilla.gnome.org/show_bug.cgi?id=792928). Due to the dependency on GStreamer 1.14, the correction will be only available under the activation of a feature "v1_14".
    
    Events are not affected as the build method the availability of `gst_event_writable_structure` and this function "will never return NULL". However, we can avoid a `structure` allocation for argument-less messages without `other_fields`.
    658be807
Name
Last commit
Last update
..
auto Loading commit data...
bin.rs Loading commit data...
buffer.rs Loading commit data...
bufferlist.rs Loading commit data...
bus.rs Loading commit data...
caps.rs Loading commit data...
child_proxy.rs Loading commit data...
clock.rs Loading commit data...
clock_time.rs Loading commit data...
context.rs Loading commit data...
date_time.rs Loading commit data...
device_provider.rs Loading commit data...
element.rs Loading commit data...
enums.rs Loading commit data...
error.rs Loading commit data...
event.rs Loading commit data...
format.rs Loading commit data...
functions.rs Loading commit data...
ghost_pad.rs Loading commit data...
gobject.rs Loading commit data...
iterator.rs Loading commit data...
lib.rs Loading commit data...
log.rs Loading commit data...
message.rs Loading commit data...
miniobject.rs Loading commit data...
object.rs Loading commit data...
pad.rs Loading commit data...
parse_context.rs Loading commit data...
plugin.rs Loading commit data...
proxy_pad.rs Loading commit data...
query.rs Loading commit data...
sample.rs Loading commit data...
segment.rs Loading commit data...
static_caps.rs Loading commit data...
static_pad_template.rs Loading commit data...
stream_collection.rs Loading commit data...
structure.rs Loading commit data...
tag_setter.rs Loading commit data...
tags.rs Loading commit data...
toc.rs Loading commit data...
typefind.rs Loading commit data...
utils.rs Loading commit data...
value.rs Loading commit data...