Get the configured caps on @appsink. the #GstCaps accepted by the sink. gst_caps_unref() after usage. Check if @appsink will drop old buffers when the maximum amount of queued buffers is reached. filled. %TRUE if @appsink is dropping old buffers when the queue is Check if appsink will emit the "new-preroll" and "new-buffer" signals. signals. %TRUE if @appsink is emiting the "new-preroll" and "new-buffer" Get the maximum amount of buffers that can be queued in @appsink. The maximum amount of buffers that can be queued. Check if @appsink is EOS, which is when no more buffers can be pulled because an EOS event was received. This function also returns %TRUE when the appsink is not in the PAUSED or PLAYING state. %TRUE if no more buffers can be pulled and the appsink is EOS. This function blocks until a buffer or EOS becomes available or the appsink element is set to the READY/NULL state. This function will only return buffers when the appsink is in the PLAYING state. All rendered buffers will be put in a queue so that the application can pull buffers at its own rate. Note that when the application does not pull buffers fast enough, the queued buffers could consume a lot of memory, especially when dealing with raw video frames. If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. a #GstBuffer or NULL when the appsink is stopped or EOS. This function blocks until a buffer list or EOS becomes available or the appsink element is set to the READY/NULL state. This function will only return buffer lists when the appsink is in the PLAYING state. All rendered buffer lists will be put in a queue so that the application can pull buffer lists at its own rate. Note that when the application does not pull buffer lists fast enough, the queued buffer lists could consume a lot of memory, especially when dealing with raw video frames. If an EOS event was received before any buffer lists, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. a #GstBufferList or NULL when the appsink is stopped or EOS. Get the last preroll buffer in @appsink. This was the buffer that caused the appsink to preroll in the PAUSED state. This buffer can be pulled many times and remains available to the application even after EOS. This function is typically used when dealing with a pipeline in the PAUSED state. Calling this function after doing a seek will give the buffer right after the seek position. Note that the preroll buffer will also be returned as the first buffer when calling gst_app_sink_pull_buffer(). If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. This function blocks until a preroll buffer or EOS is received or the appsink element is set to the READY/NULL state. a #GstBuffer or NULL when the appsink is stopped or EOS. Set callbacks which will be executed for each new preroll, new buffer and eos. This is an alternative to using the signals, it has lower overhead and is thus less expensive, but also less flexible. If callbacks are installed, no signals will be emited for performance reasons. the callbacks a user_data argument for the callbacks a destroy notify function Set the capabilities on the appsink element. This function takes a copy of the caps structure. After calling this method, the sink will only accept caps that match @caps. If @caps is non-fixed, you must check the caps on the buffers to get the actual used caps. caps to set Instruct @appsink to drop old buffers when the maximum amount of queued buffers is reached. the new state Make appsink emit the "new-preroll" and "new-buffer" signals. This option is by default disabled because signal emission is expensive and unneeded when the application prefers to operate in pull mode. the new state Set the maximum amount of buffers that can be queued in @appsink. After this amount of buffers are queued in appsink, any more buffers will block upstream elements until a buffer is pulled from @appsink. the maximum number of buffers to queue Signal that the end-of-stream has been reached. This signal is emited from the steaming thread. Signal that a new buffer is available. This signal is emited from the steaming thread and only when the "emit-signals" property is %TRUE. The new buffer can be retrieved with the "pull-buffer" action signal or gst_app_sink_pull_buffer() either from this signal callback or from any other thread. Note that this signal is only emited when the "emit-signals" property is set to %TRUE, which it is not by default for performance reasons. Signal that a new bufferlist is available. This signal is emited from the steaming thread and only when the "emit-signals" property is %TRUE. The new buffer can be retrieved with the "pull-buffer-list" action signal or gst_app_sink_pull_buffer_list() either from this signal callback or from any other thread. Note that this signal is only emited when the "emit-signals" property is set to %TRUE, which it is not by default for performance reasons. Signal that a new preroll buffer is available. This signal is emited from the steaming thread and only when the "emit-signals" property is %TRUE. The new preroll buffer can be retrieved with the "pull-preroll" action signal or gst_app_sink_pull_preroll() either from this signal callback or from any other thread. Note that this signal is only emited when the "emit-signals" property is set to %TRUE, which it is not by default for performance reasons. This function blocks until a buffer or EOS becomes available or the appsink element is set to the READY/NULL state. This function will only return buffers when the appsink is in the PLAYING state. All rendered buffers will be put in a queue so that the application can pull buffers at its own rate. Note that when the application does not pull buffers fast enough, the queued buffers could consume a lot of memory, especially when dealing with raw video frames. It's possible to control the behaviour of the queue with the "drop" and "max-buffers" properties. If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. a #GstBuffer or NULL when the appsink is stopped or EOS. This function blocks until a buffer list or EOS becomes available or the appsink element is set to the READY/NULL state. This function will only return bufferlists when the appsink is in the PLAYING state. All rendered bufferlists will be put in a queue so that the application can pull bufferlists at its own rate. Note that when the application does not pull bufferlists fast enough, the queued bufferlists could consume a lot of memory, especially when dealing with raw video frames. It's possible to control the behaviour of the queue with the "drop" and "max-buffers" properties. If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. a #GstBufferList or NULL when the appsink is stopped or EOS. Get the last preroll buffer in @appsink. This was the buffer that caused the appsink to preroll in the PAUSED state. This buffer can be pulled many times and remains available to the application even after EOS. This function is typically used when dealing with a pipeline in the PAUSED state. Calling this function after doing a seek will give the buffer right after the seek position. Note that the preroll buffer will also be returned as the first buffer when calling gst_app_sink_pull_buffer() or the "pull-buffer" action signal. If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. This function blocks until a preroll buffer or EOS is received or the appsink element is set to the READY/NULL state. a #GstBuffer or NULL when the appsink is stopped or EOS. A set of callbacks that can be installed on the appsink with gst_app_sink_set_callbacks(). Indicates to the appsrc element that the last buffer queued in the element is the last buffer of the stream. #GST_FLOW_WRONG_STATE when @appsrc is not PAUSED or PLAYING. #GST_FLOW_OK when the EOS was successfuly queued. Get the configured caps on @appsrc. the #GstCaps produced by the source. gst_caps_unref() after usage. Check if appsrc will emit the "new-preroll" and "new-buffer" signals. signals. %TRUE if @appsrc is emiting the "new-preroll" and "new-buffer" Retrieve the min and max latencies in @min and @max respectively. the min latency the min latency Get the maximum amount of bytes that can be queued in @appsrc. The maximum amount of bytes that can be queued. Get the size of the stream in bytes. A value of -1 means that the size is not known. the size of the stream previously set with gst_app_src_set_size(); Get the stream type. Control the stream type of @appsrc with gst_app_src_set_stream_type(). the stream type. Adds a buffer to the queue of buffers that the appsrc element will push to its source pad. This function takes ownership of the buffer. When the block property is TRUE, this function can block until free space becomes available in the queue. #GST_FLOW_WRONG_STATE when @appsrc is not PAUSED or PLAYING. #GST_FLOW_UNEXPECTED when EOS occured. #GST_FLOW_OK when the buffer was successfuly queued. a #GstBuffer to push Set callbacks which will be executed when data is needed, enough data has been collected or when a seek should be performed. This is an alternative to using the signals, it has lower overhead and is thus less expensive, but also less flexible. If callbacks are installed, no signals will be emited for performance reasons. the callbacks a user_data argument for the callbacks a destroy notify function Set the capabilities on the appsrc element. This function takes a copy of the caps structure. After calling this method, the source will only produce caps that match @caps. @caps must be fixed and the caps on the buffers must match the caps or left NULL. caps to set Make appsrc emit the "new-preroll" and "new-buffer" signals. This option is by default disabled because signal emission is expensive and unneeded when the application prefers to operate in pull mode. the new state Configure the @min and @max latency in @src. If @min is set to -1, the default latency calculations for pseudo-live sources will be used. the min latency the min latency Set the maximum amount of bytes that can be queued in @appsrc. After the maximum amount of bytes are queued, @appsrc will emit the "enough-data" signal. the maximum number of bytes to queue Set the size of the stream in bytes. A value of -1 means that the size is not known. the size to set Set the stream type on @appsrc. For seekable streams, the "seek" signal must be connected to. A stream_type stream the new state Notify @appsrc that no more buffer are available. Signal that the source has enough data. It is recommended that the application stops calling push-buffer until the need-data signal is emited again to avoid excessive buffer queueing. Signal that the source needs more data. In the callback or from another thread you should call push-buffer or end-of-stream. pushed into @appsrc. You can call push-buffer multiple times until the enough-data signal is fired. the amount of bytes needed. Adds a buffer to the queue of buffers that the appsrc element will push to its source pad. This function does not take ownership of the buffer so the buffer needs to be unreffed after calling this function. When the block property is TRUE, this function can block until free space becomes available in the queue. a buffer to push Seek to the given offset. The next push-buffer should produce buffers from the new @offset. This callback is only called for seekable stream types. %TRUE if the seek succeeded. the offset to seek to A set of callbacks that can be installed on the appsrc with gst_app_src_set_callbacks(). The stream type.