Schnittstelle Pad.OnPadChainListFunction

Umschließende Klasse:
Pad
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Pad.OnPadChainListFunction
  • Methodendetails

    • onPadChainListFunction

      int onPadChainListFunction(CallbackHandler __self, @Nonnull Pad pad, @Nullable Object parent, @Nonnull BufferList list)
      A function that will be called on sinkpads when chaining buffer lists.
      The function typically processes the data contained in the buffer list and
      either consumes the data or passes it on to the internally linked pad(s).

      The implementer of this function receives a refcount to @list and
      should gst_buffer_list_unref() when the list is no longer needed.

      When a chainlist function detects an error in the data stream, it must
      post an error on the bus and return an appropriate #GstFlowReturn value.
      Parameter:
      pad - the sink #GstPad that performed the chain.
      parent - the parent of @pad. If the #GST_PAD_FLAG_NEED_PARENT flag is set, @parent is guaranteed to be not-%NULL and remain valid during the execution of this function.
      list - the #GstBufferList that is chained, not %NULL.
      Gibt zurück:
      #GST_FLOW_OK for success