gstreamer-rs/gstreamer/src
Sebastian Dröge 932b8f813d gstreamer/pad: Add support for removing pad probes from the probe callback
While this allows to remove the pad probe multiple times, which would
cause a g_warning(), this is not actually making the situation worse
than before while making some code patterns easier to implement:

  - Probes could already be removed twice by return
    gst::PadProbeReturn::Remove and then calling pad.remove_probe()
  - Probes could be removed from a different pad than where they were
    added

As such let's go with the simple solution here for now and allow giving
owned access to the probe id from the probe callback.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/286
2021-02-28 19:08:59 +02:00
..
auto Regenerate with latest gir 2021-02-28 18:30:54 +02:00
subclass gstreamer: Update for glib::Type API changes 2021-02-25 12:49:47 +02:00
allocation_params.rs gstreamer,video: Do not zero-initialize designated struct members 2021-02-15 20:19:38 +01:00
bin.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
buffer.rs gstreamer: Update for glib::Type API changes 2021-02-25 12:49:47 +02:00
buffer_cursor.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
buffer_pool.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
buffer_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
bufferlist.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
bufferlist_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
bus.rs Use std::future::ready instead of futures_util::future::ready 2021-01-19 13:33:11 +01:00
bus_unix.rs Fix license header situation 2020-12-15 11:53:31 +01:00
bus_windows.rs Fix license header situation 2020-12-15 11:53:31 +01:00
caps.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
caps_features.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
caps_features_serde.rs Fix license header situation 2020-12-15 11:53:31 +01:00
caps_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
child_proxy.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
clock.rs gstreamer/clock: Move away from deprecated atomic API 2021-02-10 13:09:51 +02:00
clock_time.rs gstreamer/clock_time: Improve Display formatting 2021-01-29 16:31:07 +00:00
clock_time_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
context.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
control_binding.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
control_source.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
date_time.rs gstreamer/datetime: Silence new 1.50 clippy warning 2021-02-10 13:09:51 +02:00
date_time_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
device_monitor.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
device_provider.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
element.rs Use async/await in a few places and reduce dependencies as a result 2021-01-14 15:25:03 +02:00
element_factory_list_type.rs gstreamer: Provide better bindings for ElementFactoryListType 2021-02-19 12:56:54 +02:00
enums.rs Fix license header situation 2020-12-15 11:53:31 +01:00
error.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
event.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
format.rs gstreamer/format,value: Skip init in functions that contain self 2021-01-08 11:50:31 +01:00
format_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
functions.rs Fix license header situation 2020-12-15 11:53:31 +01:00
ghost_pad.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
gobject.rs Fix license header situation 2020-12-15 11:53:31 +01:00
iterator.rs gstreamer: Update for glib::Type API changes 2021-02-25 12:49:47 +02:00
lib.rs gstreamer: Provide better bindings for ElementFactoryListType 2021-02-19 12:56:54 +02:00
log.rs gstreamer/log: Handle compiled out GStreamer debug system properly 2021-01-31 12:25:48 +02:00
memory.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
message.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
meta.rs gstreamer: Update for glib::Type API changes 2021-02-25 12:49:47 +02:00
miniobject.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
object.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
pad.rs gstreamer/pad: Add support for removing pad probes from the probe callback 2021-02-28 19:08:59 +02:00
pad_template.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
param_spec.rs Fix license header situation 2020-12-15 11:53:31 +01:00
parse_context.rs gst,base,sdp: Use specific copy/free or (un)ref instead of g_boxed 2021-01-08 10:41:06 +01:00
pipeline.rs Fix license header situation 2020-12-15 11:53:31 +01:00
plugin.rs Fix license header situation 2020-12-15 11:53:31 +01:00
plugin_feature.rs gstreamer/plugin_feature: Make load downcast to Self 2021-02-19 11:23:56 +00:00
promise.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
proxy_pad.rs Fix license header situation 2020-12-15 11:53:31 +01:00
query.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
sample.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
sample_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
segment.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
segment_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
static_caps.rs Fix license header situation 2020-12-15 11:53:31 +01:00
static_pad_template.rs Fix license header situation 2020-12-15 11:53:31 +01:00
stream.rs Fix license header situation 2020-12-15 11:53:31 +01:00
stream_collection.rs Fix license header situation 2020-12-15 11:53:31 +01:00
structure.rs gstreamer: Update for glib::Type API changes 2021-02-25 12:49:47 +02:00
structure_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
tag_setter.rs Fix license header situation 2020-12-15 11:53:31 +01:00
tags.rs gstreamer/tags: Fix redundant_semicolons lint warning 2021-01-08 11:01:02 +01:00
tags_serde.rs gstreamer: Update for glib::Type API changes 2021-02-25 12:49:47 +02:00
toc.rs Remove gst_ prefix from all macros except for the logging macros 2020-12-20 19:40:34 +02:00
toc_serde.rs Fix clippy::field_reassign_with_defaults instead of ignoring it 2021-01-08 11:01:02 +01:00
typefind.rs Update everything for glib macro renamings 2020-12-18 00:56:47 +02:00
utils.rs Fix license header situation 2020-12-15 11:53:31 +01:00
value.rs gstreamer/format,value: Skip init in functions that contain self 2021-01-08 11:50:31 +01:00
value_serde.rs gstreamer: Update for glib::Type API changes 2021-02-25 12:49:47 +02:00