GstInterPipeINode

GstInterPipeINode

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── GstInterPipeINode

Prerequisites

GstInterPipeINode requires GObject.

Known Implementations

GstInterPipeINode is implemented by GstInterPipeSink.

Description

Interface to decouple specific nodes and listeners from the core.

Functions

GST_INTER_PIPE_TYPE_INODE

#define GST_INTER_PIPE_TYPE_INODE (gst_inter_pipe_inode_get_type())

gst_inter_pipe_inode_add_listener ()

gboolean
gst_inter_pipe_inode_add_listener (GstInterPipeINode *iface,
                                   GstInterPipeIListener *listener);

Store the given listener in an internal list.

Parameters

iface

The object implementing the interface.

[transfer none][not nullable]

listener

The listener to be stored inside the node.

[transfer none][not nullable]

Returns

True if the listener was successfully stored, False otherwise.


gst_inter_pipe_inode_remove_listener ()

gboolean
gst_inter_pipe_inode_remove_listener (GstInterPipeINode *iface,
                                      GstInterPipeIListener *listener);

gst_inter_pipe_inode_receive_event ()

gboolean
gst_inter_pipe_inode_receive_event (GstInterPipeINode *iface,
                                    GstEvent *event);

Types and Values

struct GstInterPipeINodeInterface

struct GstInterPipeINodeInterface {
  GTypeInterface parent_iface;

  gboolean (* add_listener) (GstInterPipeINode *iface, GstInterPipeIListener * listener);
  gboolean (* remove_listener) (GstInterPipeINode *iface, GstInterPipeIListener * listener);
  gboolean (* receive_event) (GstInterPipeINode *iface, GstEvent *event);
};

add_listener : Add the GstInterPipeIListener given through listener and store it in an internal list. See gst_inter_pipe_inode_add_listener.

remove_listener : Remove listener from the internal list. See gst_inter_pipe_inode_remove_listener.

receive_event : Receive the upstream GstEvent passed through event and forward it upstream. It is responsability of the node to decide if the event can be forwarded or not. See gst_inter_pipe_inode_receive_event.


GstInterPipeINode

typedef struct _GstInterPipeINode GstInterPipeINode;

See Also

GstInterPipeIListener