Gst.Object
GObject.Object
Gst.Element
GstBase.BaseSink
GstAudio.BaseAudioSink
GstAudio.AudioSink
Import line: | GstAudio = imports.gi.GstAudio; |
GIR File: | GstAudio-0.10.gir |
C documentation: | GstAudioSink |
Class : | AudioSink |
Extends: | GstAudio.BaseAudioSink |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
_gst_reserved : Array
read only
|
GstAudio.AudioSink | |
async : Boolean
|
GstBase.BaseSink | |
base_time : Number
read only
|
Gst.Element | |
blocksize : Number
|
GstBase.BaseSink | |
buffer_time : Number
|
GstAudio.BaseAudioSink | |
buffers_queued : Number
read only
|
GstBase.BaseSink | |
bus : Gst.Bus
read only
|
Gst.Element | |
can_activate_pull : Boolean
|
GstAudio.BaseAudioSink | |
can_activate_push : Boolean
read only
|
GstBase.BaseSink | |
clock : Gst.Clock
read only
|
Gst.Element | |
clock_id : void*
read only
|
GstBase.BaseSink | |
current_state : Gst.State
read only
|
Gst.Element | |
drift_tolerance : Number
|
GstAudio.BaseAudioSink | |
element : GstAudio.BaseAudioSink
read only
|
GstAudio.AudioSink | |
end_time : Number
read only
|
GstBase.BaseSink | |
eos : Boolean
read only
|
GstBase.BaseSink | |
eos_queued : Boolean
read only
|
GstBase.BaseSink | |
events_queued : Number
read only
|
GstBase.BaseSink | |
flags : Number
read only
|
Gst.Object | |
flushing : Boolean
read only
|
GstBase.BaseSink | |
have_newsegment : Boolean
read only
|
GstBase.BaseSink | |
have_preroll : Boolean
read only
|
GstBase.BaseSink | |
last_buffer : Gst.Buffer
read only
|
GstBase.BaseSink | |
last_return : Gst.StateChangeReturn
read only
|
Gst.Element | |
latency_time : Number
|
GstAudio.BaseAudioSink | |
lock : GLib.Mutex
read only
|
Gst.Object | |
max_lateness : Number
|
GstBase.BaseSink | |
name : String
|
Gst.Object | |
name_prefix : String
read only
|
Gst.Object | |
need_preroll : Boolean
read only
|
GstBase.BaseSink | |
next_sample : Number
read only
|
GstAudio.BaseAudioSink | |
next_state : Gst.State
read only
|
Gst.Element | |
numpads : Number
read only
|
Gst.Element | |
numsinkpads : Number
read only
|
Gst.Element | |
numsrcpads : Number
read only
|
Gst.Element | |
object : Gst.Object
read only
|
Gst.Element | |
offset : Number
read only
|
GstBase.BaseSink | |
pad_mode : Gst.ActivateMode
read only
|
GstBase.BaseSink | |
pads : Array
read only
|
Gst.Element | |
pads_cookie : Number
read only
|
Gst.Element | |
parent : Gst.Object
read only
|
Gst.Object | |
pending_state : Gst.State
read only
|
Gst.Element | |
playing_async : Boolean
read only
|
GstBase.BaseSink | |
preroll_queue : GLib.Queue
read only
|
GstBase.BaseSink | |
preroll_queue_len : Number
|
GstBase.BaseSink | |
preroll_queue_max_len : Number
read only
|
GstBase.BaseSink | |
preroll_queued : Number
read only
|
GstBase.BaseSink | |
priv : GstAudio.BaseAudioSinkPrivate
read only
|
GstAudio.BaseAudioSink | |
provide_clock : Boolean
|
GstAudio.BaseAudioSink | |
provided_clock : Gst.Clock
read only
|
GstAudio.BaseAudioSink | |
qos : Boolean
|
GstBase.BaseSink | |
refcount : Number
read only
|
Gst.Object | |
render_delay : Number
|
GstBase.BaseSink | |
ringbuffer : GstAudio.RingBuffer
read only
|
GstAudio.BaseAudioSink | |
segment : Gst.Segment
read only
|
GstBase.BaseSink | |
sinkpad : Gst.Pad
read only
|
GstBase.BaseSink | |
sinkpads : Array
read only
|
Gst.Element | |
slave_method : GstAudio.BaseAudioSinkSlaveMethod
|
GstAudio.BaseAudioSink | |
srcpads : Array
read only
|
Gst.Element | |
state_cond : GLib.Cond
read only
|
Gst.Element | |
state_cookie : Number
read only
|
Gst.Element | |
state_lock : GLib.StaticRecMutex
read only
|
Gst.Element | |
sync : Boolean
|
GstBase.BaseSink | |
thread : GLib.Thread
read only
|
GstAudio.AudioSink | |
ts_offset : Number
|
GstBase.BaseSink |
Method / Constructor | Defined By | |
---|---|---|
new GstAudio.AudioSink
(Object properties)
Create a new GstAudio.AudioSink
Create a new GstAudio.AudioSink
|
||
abort_state
()
:
none
Abort the state change of the element.
Abort the state change of the element. This function is used by elements that do asynchronous state changes and find out something is wrong. This function should be called with the STATE_LOCK held. MT safe.
|
Gst.Element | |
Adds a pad (link point) to element.
Adds a pad (link point) to element. pad's parent will be set to element; see gst_object_set_parent() for refcounting information. Pads are not automatically activated so elements should perform the needed steps to activate the pad in case this pad is added in the PAUSED or PLAYING state. See gst_pad_set_active() for more information about activating pads. The pad and the element should be unlocked when calling this function. This function will emit the GstElement::pad-added signal on the element. a pad with the same name already existed or the pad already had another parent. MT safe.
|
Gst.Element | |
change_state
(StateChange transition)
:
Gst.StateChangeReturn
Perform transition on element.
Perform transition on element. This function must be called with STATE_LOCK held and is mainly used internally.
|
Gst.Element | |
continue_state
(StateChangeReturn ret)
:
Gst.StateChangeReturn
Commit the state change of the element and proceed to the next pending state if any.
Commit the state change of the element and proceed to the next pending state if any. This function is used by elements that do asynchronous state changes. The core will normally call this method automatically when an element returned GST_STATE_CHANGE_SUCCESS from the state change function. If after calling this method the element still has not reached the pending state, the next state change is performed. This method is used internally and should normally not be called by plugins or applications. MT safe.
|
Gst.Element | |
create_all_pads
()
:
none
Creates a pad for each pad template that is always available.
Creates a pad for each pad template that is always available. This function is only useful during object intialization of subclasses of GstElement.
|
Gst.Element | |
create_ringbuffer
()
:
GstAudio.RingBuffer
Create and return the GstRingBuffer for sink.
Create and return the GstRingBuffer for sink. This function will call the ::create_ringbuffer vmethod and will set sink as the parent of the returned buffer (see gst_object_set_parent()).
|
GstAudio.BaseAudioSink | |
Gst.Object | ||
do_preroll
(MiniObject obj)
:
Gst.FlowReturn
If the sink spawns its own thread for pulling buffers from upstream it should call this method after it has pulled a buffer.
If the sink spawns its own thread for pulling buffers from upstream it should call this method after it has pulled a buffer. If the element needed to preroll, this function will perform the preroll and will then block until the element state is changed. This function should be called with the PREROLL_LOCK held. Since 0.10.22 continue. Any other return value should be returned from the render vmethod.
|
GstBase.BaseSink | |
found_tags
(TagList list)
:
none
Posts a message to the bus that new tags were found, and pushes an event to all sourcepads.
Posts a message to the bus that new tags were found, and pushes an event to all sourcepads. Takes ownership of the list. This is a utility method for elements. Applications should use the GstTagSetter interface.
|
Gst.Element | |
Posts a message to the bus that new tags were found and pushes the tags as event.
Posts a message to the bus that new tags were found and pushes the tags as event. Takes ownership of the list. This is a utility method for elements. Applications should use the GstTagSetter interface.
|
Gst.Element | |
get_base_time
()
:
Number
Returns the base time of the element.
Returns the base time of the element. The base time is the absolute time of the clock when this element was last put to PLAYING. Subtracting the base time from the clock time gives the running time of the element. MT safe.
|
Gst.Element | |
get_blocksize
()
:
Number
Get the number of bytes that the sink will pull when it is operating in pull mode.
Get the number of bytes that the sink will pull when it is operating in pull mode.
|
GstBase.BaseSink | |
get_bus
()
:
Gst.Bus
Returns the bus of the element.
Returns the bus of the element. Note that only a GstPipeline will provide a bus for the application. MT safe.
|
Gst.Element | |
get_clock
()
:
Gst.Clock
Gets the currently configured clock of the element.
Gets the currently configured clock of the element. This is the clock as was last set with gst_element_set_clock(). MT safe.
|
Gst.Element | |
Looks for an unlinked pad to which the given pad can link.
|
Gst.Element | |
get_compatible_pad_template
(PadTemplate compattempl)
:
Gst.PadTemplate
Retrieves a pad template from element that is compatible with compattempl.
Retrieves a pad template from element that is compatible with compattempl. Pads from compatible templates can be linked together. unreferencing is necessary.
|
Gst.Element | |
get_factory
()
:
Gst.ElementFactory
Retrieves the factory that was used to create this element.
Retrieves the factory that was used to create this element. no refcounting is needed.
|
Gst.Element | |
get_index
()
:
Gst.Index
Gets the index from the element.
Gets the index from the element. element. unref after usage. MT safe.
|
Gst.Element | |
get_last_buffer
()
:
Gst.Buffer
Get the last buffer that arrived in the sink and was used for preroll or for rendering.
Get the last buffer that arrived in the sink and was used for preroll or for rendering. This property can be used to generate thumbnails. The GstCaps on the buffer can be used to determine the type of the buffer. NULL when no buffer has arrived in the sink yet or when the sink is not in PAUSED or PLAYING.
|
GstBase.BaseSink | |
get_latency
()
:
Number
Get the currently configured latency.
Get the currently configured latency.
|
GstBase.BaseSink | |
get_max_lateness
()
:
Number
Gets the max lateness value.
Gets the max lateness value. See gst_base_sink_set_max_lateness for more details. before it is dropped and not rendered. A value of -1 means an unlimited time.
|
GstBase.BaseSink | |
get_name
()
:
String
Returns a copy of the name of object.
Returns a copy of the name of object. Caller should g_free() the return value after usage. For a nameless object, this returns NULL, which you can safely g_free() as well. MT safe. This function grabs and releases object's LOCK.
|
Gst.Object | |
get_name_prefix
()
:
String
Returns a copy of the name prefix of object.
Returns a copy of the name prefix of object. Caller should g_free() the return value after usage. For a prefixless object, this returns NULL, which you can safely g_free() as well. MT safe. This function grabs and releases object's LOCK.
|
Gst.Object | |
Retrieves a pad from element by name.
Retrieves a pad from element by name. Tries gst_element_get_static_pad() first, then gst_element_get_request_pad(). to the result pad should be released with gst_object_unref() in case of a static pad or gst_element_release_request_pad() in case of a request pad. Use gst_element_get_static_pad() or gst_element_get_request_pad() instead. depending on the type of the pad.
|
Gst.Element | |
get_parent
()
:
Gst.Object
Returns the parent of object.
Returns the parent of object. This function increases the refcount of the parent object so you should gst_object_unref() it after usage. MT safe. Grabs and releases object's LOCK.
|
Gst.Object | |
get_path_string
()
:
String
Generates a string describing the path of object in the object hierarchy.
Generates a string describing the path of object in the object hierarchy. Only useful (or used) for debugging. MT safe. Grabs and releases the GstObject's LOCK for all objects in the hierarchy.
|
Gst.Object | |
get_provide_clock
()
:
Boolean
Queries whether sink will provide a clock or not.
Queries whether sink will provide a clock or not. See also gst_base_audio_sink_set_provide_clock.
|
GstAudio.BaseAudioSink | |
get_query_types
()
:
Gst.QueryType
Get an array of query types from the element.
Get an array of query types from the element. If the element doesn't implement a query types function, the query will be forwarded to the peer of a random linked sink pad. be freed or modified. MT safe.
|
Gst.Element | |
get_render_delay
()
:
Number
Get the render delay of sink.
Get the render delay of sink. see gst_base_sink_set_render_delay() for more information about the render delay.
|
GstBase.BaseSink | |
Gst.Element | ||
get_slave_method
()
:
GstAudio.BaseAudioSinkSlaveMethod
Get the current slave method used by sink.
Get the current slave method used by sink.
|
GstAudio.BaseAudioSink | |
get_start_time
()
:
Number
Returns the start time of the element.
Returns the start time of the element. The start time is the running time of the clock when this element was last put to PAUSED. Usually the start_time is managed by a toplevel element such as GstPipeline. MT safe.
|
Gst.Element | |
Gets the state of the element.
Gets the state of the element. For elements that performed an ASYNC state change, as reported by gst_element_set_state(), this function will block up to the specified timeout value for the state change to complete. If the element completes the state change or goes into an error, this function returns immediately with a return value of GST_STATE_CHANGE_SUCCESS or GST_STATE_CHANGE_FAILURE respectively. For elements that did not return GST_STATE_CHANGE_ASYNC, this function returns the current and pending state immediately. This function returns GST_STATE_CHANGE_NO_PREROLL if the element successfully changed its state but is not able to provide data yet. This mostly happens for live sources that only produce data in GST_STATE_PLAYING. While the state change return is equivalent to GST_STATE_CHANGE_SUCCESS, it is returned to the application to signal that some sink elements might not be able to complete their state change because an element is not producing data to complete the preroll. When setting the element to playing, the preroll will complete and playback will start. MT safe.
|
Gst.Element | |
Gst.Element | ||
get_sync
()
:
Boolean
Checks if sink is currently configured to synchronize against the clock.
Checks if sink is currently configured to synchronize against the clock.
|
GstBase.BaseSink | |
get_ts_offset
()
:
Number
Get the synchronisation offset of sink.
Get the synchronisation offset of sink.
|
GstBase.BaseSink | |
Check if object has an ancestor ancestor somewhere up in the hierarchy.
Check if object has an ancestor ancestor somewhere up in the hierarchy. MT safe. Grabs and releases object's locks.
|
Gst.Object | |
Test whether the given element implements a certain interface of type iface_type, and test whether it is supported for this specific instance.
|
Gst.Element | |
is_async_enabled
()
:
Boolean
Checks if sink is currently configured to perform asynchronous state changes to PAUSED.
Checks if sink is currently configured to perform asynchronous state changes to PAUSED. changes.
|
GstBase.BaseSink | |
is_indexable
()
:
Boolean
Queries if the element can be indexed.
Queries if the element can be indexed. MT safe.
|
Gst.Element | |
is_locked_state
()
:
Boolean
Checks if the state of an element is locked.
Checks if the state of an element is locked. If the state of an element is locked, state changes of the parent don't affect the element. This way you can leave currently unused elements inside bins. Just lock their state before changing the state from GST_STATE_NULL. MT safe.
|
Gst.Element | |
is_qos_enabled
()
:
Boolean
Checks if sink is currently configured to send Quality-of-Service events upstream.
Checks if sink is currently configured to send Quality-of-Service events upstream.
|
GstBase.BaseSink | |
iterate_pads
()
:
Gst.Iterator
Retrieves an iterattor of element's pads.
Retrieves an iterattor of element's pads. The iterator should be freed after usage. MT safe.
|
Gst.Element | |
iterate_sink_pads
()
:
Gst.Iterator
Retrieves an iterator of element's sink pads.
Retrieves an iterator of element's sink pads. MT safe.
|
Gst.Element | |
iterate_src_pads
()
:
Gst.Iterator
Retrieves an iterator of element's source pads.
Retrieves an iterator of element's source pads. MT safe.
|
Gst.Element | |
Links src to dest.
Links src to dest. The link must be from source to destination; the other direction will not be tried. The function looks for existing pads that aren't linked yet. It will request new pads if necessary. Such pads need to be released manualy when unlinking. If multiple links are possible, only one is established. Make sure you have added your elements to a bin or pipeline with gst_bin_add() before trying to link them.
|
Gst.Element | |
Links src to dest using the given caps as filtercaps.
Links src to dest using the given caps as filtercaps. The link must be from source to destination; the other direction will not be tried. The function looks for existing pads that aren't linked yet. It will request new pads if necessary. If multiple links are possible, only one is established. Make sure you have added your elements to a bin or pipeline with gst_bin_add() before trying to link them.
|
Gst.Element | |
or NULL for any pad.
or NULL for any pad. Links the two named pads of the source and destination elements. Side effect is that if one of the pads has no parent, it becomes a child of the parent of the other element. If they have different parents, the link fails.
|
Gst.Element | |
Links the two named pads of the source and destination elements.
Links the two named pads of the source and destination elements. Side effect is that if one of the pads has no parent, it becomes a child of the parent of the other element. If they have different parents, the link fails. If caps is not NULL, makes sure that the caps of the link is a subset of caps.
|
Gst.Element | |
lost_state
()
:
none
Brings the element to the lost state.
Brings the element to the lost state. This function calls gst_element_lost_state_full() with the new_base_time set to TRUE. This function is used internally and should normally not be called from plugins or applications. MT safe.
|
Gst.Element | |
lost_state_full
(Boolean new_base_time)
:
none
Brings the element to the lost state.
Brings the element to the lost state. The current state of the element is copied to the pending state so that any call to gst_element_get_state() will return GST_STATE_CHANGE_ASYNC. An ASYNC_START message is posted with indication to distribute a new base_time to the element when new_base_time is TRUE. If the element was PLAYING, it will go to PAUSED. The element will be restored to its PLAYING state by the parent pipeline when it prerolls again. This is mostly used for elements that lost their preroll buffer in the GST_STATE_PAUSED or GST_STATE_PLAYING state after a flush, they will go to their pending state again when a new preroll buffer is queued. This function can only be called when the element is currently not in error or an async state change. This function is used internally and should normally not be called from plugins or applications. MT safe.
|
Gst.Element | |
message_full
(MessageType type, Number domain, Number code, String text, String debug, String file, String function, Number line)
:
none
Post an error, warning or info message on the bus from inside an element.
Post an error, warning or info message on the bus from inside an element. GST_MESSAGE_INFO. MT safe.
|
Gst.Element | |
no_more_pads
()
:
none
Use this function to signal that the element does not expect any more pads to show up in the current pipeline.
Use this function to signal that the element does not expect any more pads to show up in the current pipeline. This function should be called whenever pads have been added by the element itself. Elements with GST_PAD_SOMETIMES pad templates use this in combination with autopluggers to figure out that the element is done initializing its pads. This function emits the GstElement::no-more-pads signal. MT safe.
|
Gst.Element | |
Post a message on the element's GstBus.
Post a message on the element's GstBus. This function takes ownership of the message; if you want to access the message after this call, you should add an additional reference before calling. FALSE if the element did not have a bus. MT safe.
|
Gst.Element | |
provide_clock
()
:
Gst.Clock
Get the clock provided by the given element.
Get the clock provided by the given element.
|
Gst.Element | |
provides_clock
()
:
Boolean
Query if the element provides a clock.
Query if the element provides a clock. A GstClock provided by an element can be used as the global GstClock for the pipeline. An element that can provide a clock is only required to do so in the PAUSED state, this means when it is fully negotiated and has allocated the resources to operate the clock. MT safe.
|
Gst.Element | |
Performs a query on the given element.
|
Gst.Element | |
Queries an element to convert src_val in src_format to dest_format.
Queries an element to convert src_val in src_format to dest_format.
|
Gst.Element | |
Queries an element for the total stream duration.
Queries an element for the total stream duration.
|
Gst.Element | |
query_latency
(Object out_values, Boolean upstream_live, Number min_latency, Number max_latency)
:
Boolean
Query the sink for the latency parameters.
Query the sink for the latency parameters. The latency will be queried from the upstream elements. live will be TRUE if sink is configured to synchronize against the clock. upstream_live will be TRUE if an upstream element is live. If both live and upstream_live are TRUE, the sink will want to compensate for the latency introduced by the upstream elements by setting the This function is mostly used by subclasses.
|
GstBase.BaseSink | |
Queries an element for the stream position.
Queries an element for the stream position.
|
Gst.Element | |
release_request_pad
(Pad pad)
:
none
Makes the element free the previously requested pad as obtained with gst_element_get_request_pad().
Makes the element free the previously requested pad as obtained with gst_element_get_request_pad(). This does not unref the pad. If the pad was created by using gst_element_get_request_pad(), gst_element_release_request_pad() needs to be followed by gst_object_unref() to free the pad. MT safe.
|
Gst.Element | |
Removes pad from element.
Removes pad from element. pad will be destroyed if it has not been referenced elsewhere using gst_object_unparent(). This function is used by plugin developers and should not be used by applications. Pads that were dynamically requested from elements with gst_element_get_request_pad() should be released with the gst_element_release_request_pad() function instead. Pads are not automatically deactivated so elements should perform the needed steps to deactivate the pad in case this pad is removed in the PAUSED or PLAYING state. See gst_pad_set_active() for more information about deactivating pads. The pad and the element should be unlocked when calling this function. This function will emit the GstElement::pad-removed signal on the element. pad does not belong to the provided element. MT safe.
|
Gst.Element | |
replace
(Object newobj)
:
none
Unrefs the GstObject pointed to by oldobj, refs newobj and puts newobj in *oldobj.
Unrefs the GstObject pointed to by oldobj, refs newobj and puts newobj in *oldobj. Be carefull when calling this function, it does not take any locks. You might want to lock the object owning oldobj pointer before calling this function. Make sure not to LOCK oldobj because it might be unreffed which could cause a deadlock when it is disposed.
|
Gst.Object | |
requires_clock
()
:
Boolean
Query if the element requires a clock.
Query if the element requires a clock. MT safe.
|
Gst.Element | |
restore_thyself
(Node self)
:
none
Restores object with the data from the parent XML node.
Restores object with the data from the parent XML node.
|
Gst.Object | |
save_thyself
(Node parent)
:
libxml2.Node
Saves object into the parent XML node.
Saves object into the parent XML node.
|
Gst.Object | |
seek
(Number rate, Format format, SeekFlags flags, SeekType cur_type, Number cur, SeekType stop_type, Number stop)
:
Boolean
Sends a seek event to an element.
Sends a seek event to an element. See gst_event_new_seek() for the details of the parameters. The seek event is sent to the element using gst_element_send_event(). MT safe.
|
Gst.Element | |
|
Gst.Element | |
Sends an event to an element.
Sends an event to an element. If the element doesn't implement an event handler, the event will be pushed on a random linked sink pad for upstream events or a random linked source pad for downstream events. This function takes owership of the provided event so you should gst_event_ref() it if you want to reuse the event after this call. MT safe.
|
Gst.Element | |
set_async_enabled
(Boolean enabled)
:
none
Configures sink to perform all state changes asynchronusly.
Configures sink to perform all state changes asynchronusly. When async is disabled, the sink will immediatly go to PAUSED instead of waiting for a preroll buffer. This feature is usefull if the sink does not synchronize against the clock or when it is dealing with sparse streams.
|
GstBase.BaseSink | |
set_base_time
(Number time)
:
none
Set the base time of an element.
Set the base time of an element. See gst_element_get_base_time(). MT safe.
|
Gst.Element | |
set_blocksize
(Number blocksize)
:
none
Set the number of bytes that the sink will pull when it is operating in pull mode.
Set the number of bytes that the sink will pull when it is operating in pull mode.
|
GstBase.BaseSink | |
set_bus
(Bus bus)
:
none
Sets the bus of the element.
Sets the bus of the element. Increases the refcount on the bus. For internal use only, unless you're testing elements. MT safe.
|
Gst.Element | |
Sets the clock for the element.
|
Gst.Element | |
set_index
(Index index)
:
none
Set index on the element.
Set index on the element. The refcount of the index will be increased, any previously set index is unreffed. MT safe.
|
Gst.Element | |
Locks the state of an element, so state changes of the parent don't affect this element anymore.
|
Gst.Element | |
set_max_lateness
(Number max_lateness)
:
none
Sets the new max lateness value to max_lateness.
Sets the new max lateness value to max_lateness. This value is used to decide if a buffer should be dropped or not based on the buffer timestamp and the current clock time. A value of -1 means an unlimited time.
|
GstBase.BaseSink | |
Sets the name of object, or gives object a guaranteed unique name (if name is NULL).
Sets the name of object, or gives object a guaranteed unique name (if name is NULL). This function makes a copy of the provided name, so the caller retains ownership of the name it sent. a parent cannot be renamed, this function returns FALSE in those cases. MT safe. This function grabs and releases object's LOCK.
|
Gst.Object | |
set_name_prefix
(String name_prefix)
:
none
Sets the name prefix of object to name_prefix.
Sets the name prefix of object to name_prefix. This function makes a copy of the provided name prefix, so the caller retains ownership of the name prefix it sent. MT safe. This function grabs and releases object's LOCK.
|
Gst.Object | |
Sets the parent of object to parent.
Sets the parent of object to parent. The object's reference count will be incremented, and any floating reference will be removed (see gst_object_sink()). This function causes the parent-set signal to be emitted when the parent was successfully set. already had a parent or object and parent are the same. MT safe. Grabs and releases object's LOCK.
|
Gst.Object | |
set_provide_clock
(Boolean provide)
:
none
Controls whether sink will provide a clock or not.
Controls whether sink will provide a clock or not. If provide is TRUE, gst_element_provide_clock() will return a clock that reflects the datarate of sink. If provide is FALSE, gst_element_provide_clock() will return NULL.
|
GstAudio.BaseAudioSink | |
set_qos_enabled
(Boolean enabled)
:
none
Configures sink to send Quality-of-Service events upstream.
Configures sink to send Quality-of-Service events upstream.
|
GstBase.BaseSink | |
set_render_delay
(Number delay)
:
none
Set the render delay in sink to delay.
Set the render delay in sink to delay. The render delay is the time between actual rendering of a buffer and its synchronisation time. Some devices might delay media rendering which can be compensated for with this function. After calling this function, this sink will report additional latency and other sinks will adjust their latency to delay the rendering of their media. This function is usually called by subclasses.
|
GstBase.BaseSink | |
set_slave_method
(BaseAudioSinkSlaveMethod method)
:
none
Controls how clock slaving will be performed in sink.
Controls how clock slaving will be performed in sink.
|
GstAudio.BaseAudioSink | |
set_start_time
(Number time)
:
none
Set the start time of an element.
Set the start time of an element. The start time of the element is the running time of the element when it last went to the PAUSED state. In READY or after a flushing seek, it is set to 0. Toplevel elements like GstPipeline will manage the start_time and base_time on its children. Setting the start_time to GST_CLOCK_TIME_NONE on such a toplevel element will disable the distribution of the base_time to the children and can be useful if the application manages the base_time itself, for example if you want to synchronize capture from multiple pipelines, and you can also ensure that the pipelines have the same clock. MT safe.
|
Gst.Element | |
set_state
(State state)
:
Gst.StateChangeReturn
Sets the state of the element.
Sets the state of the element. This function will try to set the requested state by going through all the intermediary states and calling the class's state change function for each. This function can return GST_STATE_CHANGE_ASYNC, in which case the element will perform the remainder of the state change asynchronously in another thread. An application can use gst_element_get_state() to wait for the completion of the state change or it can wait for a state change message on the bus. State changes to GST_STATE_READY or GST_STATE_NULL never return GST_STATE_CHANGE_ASYNC. MT safe.
|
Gst.Element | |
set_sync
(Boolean sync)
:
none
Configures sink to synchronize on the clock or not.
Configures sink to synchronize on the clock or not. When possible. If sync is TRUE, the timestamps of the incomming buffers will be used to schedule the exact render time of its contents.
|
GstBase.BaseSink | |
set_ts_offset
(Number offset)
:
none
Adjust the synchronisation of sink with offset.
Adjust the synchronisation of sink with offset. A negative value will render buffers earlier than their timestamp. A positive value will delay rendering. This function can be used to fix playback of badly timestamped buffers.
|
GstBase.BaseSink | |
sync_state_with_parent
()
:
Boolean
Tries to change the state of the element to the same as its parent.
Tries to change the state of the element to the same as its parent. If this function returns FALSE, the state of element is undefined. MT safe.
|
Gst.Element | |
unlink
(Element dest)
:
none
Unlinks all source pads of the source element with all sink pads of the sink element to which they are linked.
Unlinks all source pads of the source element with all sink pads of the sink element to which they are linked. If the link has been made using gst_element_link(), it could have created an requestpad, which has to be released using gst_element_release_request_pad().
|
Gst.Element | |
Unlinks the two named pads of the source and destination elements.
Unlinks the two named pads of the source and destination elements.
|
Gst.Element | |
unparent
()
:
none
Clear the parent of object, removing the associated reference.
Clear the parent of object, removing the associated reference. This function decreases the refcount of object. MT safe. Grabs and releases object's lock.
|
Gst.Object | |
This function will block until time is reached.
This function will block until time is reached. It is usually called by subclasses that use their own internal synchronisation. If time is not valid, no sycnhronisation is done and GST_CLOCK_BADTIME is returned. Likewise, if synchronisation is disabled in the element or there is no clock, no synchronisation is done and GST_CLOCK_BADTIME is returned. This function should only be called with the PREROLL_LOCK held, like when receiving an EOS event in the GstBaseSinkClass.event() vmethod or when receiving a buffer in the GstBaseSinkClass.render() vmethod. The time argument should be the running_time of when this method should return and is not adjusted with any latency or offset configured in the sink. Since 0.10.20
|
GstBase.BaseSink | |
This function will block until time is reached.
This function will block until time is reached. It is usually called by subclasses that use their own internal synchronisation but want to let the EOS be handled by the base class. This function should only be called with the PREROLL_LOCK held, like when receiving an EOS event in the ::event vmethod. The time argument should be the running_time of when the EOS should happen and will be adjusted with any latency and offset configured in the sink. Since 0.10.15
|
GstBase.BaseSink | |
wait_preroll
()
:
Gst.FlowReturn
If the GstBaseSinkClass.render() method performs its own synchronisation against the clock it must unblock when going from PLAYING to the PAUSED state and call this method before continuing to render the remaining data.
If the GstBaseSinkClass.render() method performs its own synchronisation against the clock it must unblock when going from PLAYING to the PAUSED state and call this method before continuing to render the remaining data. This function will block until a state change to PLAYING happens (in which case this function returns GST_FLOW_OK) or the processing must be stopped due to a state change to READY or a FLUSH event (in which case this function returns GST_FLOW_WRONG_STATE). This function should only be called with the PREROLL_LOCK held, like in the render function. continue. Any other return value should be returned from the render vmethod.
|
GstBase.BaseSink |
Event | Defined By | |
---|---|---|
The deep notify signal is used to be notified of property changes.
The deep notify signal is used to be notified of property changes. It is typically attached to the toplevel bin to receive notifications from all the elements contained in that bin.
|
Gst.Object | |
no_more_pads (Element self)
:
none
This signals that the element will not generate more dynamic pads.
This signals that the element will not generate more dynamic pads.
|
Gst.Element | |
Trigered whenever a new object is saved to XML.
Trigered whenever a new object is saved to XML. You can connect to this signal to insert custom XML tags into the core XML.
|
Gst.Object | |
a new GstPad has been added to the element.
a new GstPad has been added to the element.
|
Gst.Element | |
a GstPad has been removed from the element
a GstPad has been removed from the element
|
Gst.Element | |
Emitted when the parent of an object is set.
Emitted when the parent of an object is set.
|
Gst.Object | |
Emitted when the parent of an object is unset.
Emitted when the parent of an object is unset.
|
Gst.Object |