Class: Gst::GhostPad

Inherits:
ProxyPad show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ProxyPad

chain_default, chain_list_default, getrange_default, #internal, iterate_internal_links_default

Methods inherited from Pad

#activate_mode, #active=, #add_probe, #allowed_caps, #can_link, #caps, #caps=, #chain, #chain_list, #check_reconfigure, #create_stream_id, #create_stream_id_printf, #create_stream_id_printf_valist, #current_caps, #direction, #direction=, #element_private, #element_private=, #event_default, #forward, #get_range, #get_sticky_event, #has_current_caps, #is_active, #is_blocked, #is_blocking, #is_linked, #iterate_internal_links, #iterate_internal_links_default, #last_flow_return, #link, #link_full, link_get_name, #link_maybe_ghosting, #link_maybe_ghosting_full, #mark_reconfigure, #needs_reconfigure, #offset, #offset=, #pad_template, #pad_template_caps, #parent_element, #pause_task, #peer, #peer_query, #peer_query_accept_caps, #peer_query_caps, #peer_query_convert, #peer_query_duration, #peer_query_position, #proxy_query_accept_caps, #proxy_query_caps, #pull_range, #push, #push_event, #push_list, #query, #query_accept_caps, #query_caps, #query_convert, #query_default, #query_duration, #query_position, #remove_probe, #send_event, #set_activate_function_full, #set_activatemode_function_full, #set_chain_function_full, #set_chain_list_function_full, #set_event_full_function_full, #set_event_function_full, #set_getrange_function_full, #set_iterate_internal_links_function_full, #set_link_function_full, #set_query_function_full, #set_unlink_function_full, #single_internal_link, #start_task, #sticky_events_foreach, #stop_task, #store_sticky_event, #stream, #stream_id, #task_state, #template, #template=, #unlink, #use_fixed_caps

Methods inherited from Object

#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref

Constructor Details

#initialize(name, templ) ⇒ Gst::Pad

Create a new ghostpad based on templ, without setting a target. The direction will be taken from the templ. case of an error.

Parameters:

  • name (String)

    the name of the new pad, or nil to assign a default name

  • templ (Gst::PadTemplate)

    the Gst::PadTemplate to create the ghostpad from.

Class Method Details

.activate_mode_default(pad, parent, mode, active) ⇒ Boolean

Invoke the default activate mode function of a ghost pad.

Parameters:

  • pad (Gst::Pad)

    the Gst::Pad to activate or deactivate.

  • parent (Gst::Object)

    the parent of pad or nil

  • mode (Gst::PadMode)

    the requested activation mode

  • active (Boolean)

    whether the pad should be active or not.

Returns:

  • (Boolean)

    true if the operation was successful.

.internal_activate_mode_default(pad, parent, mode, active) ⇒ Boolean

Invoke the default activate mode function of a proxy pad that is owned by a ghost pad.

Parameters:

  • pad (Gst::Pad)

    the Gst::Pad to activate or deactivate.

  • parent (Gst::Object)

    the parent of pad or nil

  • mode (Gst::PadMode)

    the requested activation mode

  • active (Boolean)

    whether the pad should be active or not.

Returns:

  • (Boolean)

    true if the operation was successful.

Instance Method Details

#constructBoolean

Finish initialization of a newly allocated ghost pad.

This function is most useful in language bindings and when subclassing Gst::GhostPad; plugin and application developers normally will not call this function. Call this function directly after a call to g_object_new (GST_TYPE_GHOST_PAD, "direction", dir, ..., NULL).

Returns:

  • (Boolean)

    true if the construction succeeds, false otherwise.

#targetGst::Pad

Get the target pad of gpad. Unref target pad after usage. nil if the ghostpad has no target set. Unref target pad after usage.

Returns:

  • (Gst::Pad)

    the target Gst::Pad, can be

#target=(newtarget) ⇒ Boolean

Set the new target of the ghostpad gpad. Any existing target is unlinked and links to the new target are established. if newtarget is nil the target will be cleared.

Parameters:

  • newtarget (Gst::Pad)

    the new pad target

Returns:

  • (Boolean)

    true if the new target could be set. This function can return false when the internal pads could not be linked.