gstreamer-rs/gstreamer/src
fengalin 658be807c1 Fix building argument-less messages
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`.
2018-01-30 09:57:09 +02:00
..
auto Correctly mark Stream and StreamType as requiring version 1.10 at least 2017-12-26 18:13:57 +01:00
bin.rs Add tests for Bin::get_children() and Element::get_*pads() 2017-10-26 13:29:37 +02:00
buffer.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
bufferlist.rs Run everything to rustfmt again 2017-12-01 19:02:53 +02:00
bus.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
caps.rs Use from_glib_none/full directly on potential NULL pointers if Option<_> is returned 2017-12-16 15:07:26 +02:00
child_proxy.rs Let ChildProxy::set_child_property() take a &ToValue instead of an actual Value 2017-12-16 15:24:18 +02:00
clock.rs Remove clock parameter from Clock::(un)adjust_with_calibration() 2017-12-18 09:39:37 +02:00
clock_time.rs Fix precision handling in ClockTime Display impl 2017-12-10 12:31:41 +02:00
context.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
date_time.rs Use unwrap_or_else() for the default value in the DateTime Display impl 2017-12-05 23:20:10 +02:00
device_provider.rs Run everything through latest rustfmt-nightly 2017-10-17 12:06:51 +03:00
element.rs Add ErrorMessage type 2017-12-20 20:00:05 +02:00
enums.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
error.rs Derive Clone on ErrorMessage 2017-12-20 20:08:00 +02:00
event.rs Fix building argument-less messages 2018-01-30 09:57:09 +02:00
format.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
functions.rs Add newtype wrappers and INVALID constants for event/message GroupId and Seqnum 2017-12-05 21:33:04 +02:00
ghost_pad.rs Use the correct pad type for the proxy/ghost pad default pad functions 2017-12-17 11:24:03 +02:00
gobject.rs Fix indentation in a few places and remove unused imports 2017-07-24 11:52:28 +03:00
iterator.rs Fix various clippy warnings 2017-12-20 21:46:58 +02:00
lib.rs Add ErrorMessage type 2017-12-20 20:00:05 +02:00
log.rs Description of debug categories is optional 2017-12-16 17:56:23 +02:00
message.rs Fix building argument-less messages 2018-01-30 09:57:09 +02:00
miniobject.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
object.rs Use downcast_unchecked() for sender in deep-notify signal handler 2017-12-09 18:08:57 +02:00
pad.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
parse_context.rs Run everything through latest rustfmt-nightly 2017-09-10 15:21:26 +03:00
plugin.rs Various nullability fixes to plugin bindings, and add add_dependency() API 2017-12-17 14:26:17 +02:00
proxy_pad.rs Use the correct pad type for the proxy/ghost pad default pad functions 2017-12-17 11:24:03 +02:00
query.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
sample.rs Add Sample::get_info() and deprecate get_structure() 2017-12-30 15:25:12 +02:00
segment.rs Mark Segment as #[repr(C)] 2017-12-16 17:30:37 +02:00
static_caps.rs Run everything through latest rustfmt-nightly 2017-10-17 12:06:51 +03:00
static_pad_template.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
stream_collection.rs Fix various clippy warnings 2017-12-20 21:46:58 +02:00
structure.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
tag_setter.rs Don't require a mutable self for TagSetterExtManual::add() 2017-12-23 11:43:52 +02:00
tags.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
toc.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
typefind.rs Run everything through rustfmt again 2017-12-20 19:30:14 +02:00
utils.rs Add private utils module with a MutexGuard around GMutex 2017-10-25 12:58:16 +02:00
value.rs Require SendValue for value::Array and value::List 2017-12-17 14:06:22 +02:00