mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
appsrc: Remove trailing whitespace
https://bugzilla.gnome.org/show_bug.cgi?id=768510
This commit is contained in:
parent
48324cab38
commit
50f74daa2f
3 changed files with 16 additions and 17 deletions
|
@ -66,10 +66,10 @@
|
|||
* ways:
|
||||
*
|
||||
* The push mode, in which the application repeatedly calls the push-buffer/push-sample
|
||||
* method with a new buffer/sample. Optionally, the queue size in the appsrc
|
||||
* can be controlled with the enough-data and need-data signals by respectively
|
||||
* stopping/starting the push-buffer/push-sample calls. This is a typical
|
||||
* mode of operation for the stream-type "stream" and "seekable". Use this
|
||||
* method with a new buffer/sample. Optionally, the queue size in the appsrc
|
||||
* can be controlled with the enough-data and need-data signals by respectively
|
||||
* stopping/starting the push-buffer/push-sample calls. This is a typical
|
||||
* mode of operation for the stream-type "stream" and "seekable". Use this
|
||||
* mode when implementing various network protocols or hardware devices.
|
||||
*
|
||||
* The pull mode, in which the need-data signal triggers the next push-buffer call.
|
||||
|
@ -489,20 +489,20 @@ gst_app_src_class_init (GstAppSrcClass * klass)
|
|||
* @appsrc: the appsrc
|
||||
* @sample: a sample from which extract buffer to push
|
||||
*
|
||||
* Extract a buffer from the provided sample and adds the extracted buffer
|
||||
* Extract a buffer from the provided sample and adds the extracted buffer
|
||||
* to the queue of buffers that the appsrc element will
|
||||
* push to its source pad. This function set the appsrc caps based on the caps
|
||||
* in the sample and reset the caps if they change.
|
||||
* Only the caps and the buffer of the provided sample are used and not
|
||||
* for example the segment in the sample.
|
||||
* in the sample and reset the caps if they change.
|
||||
* Only the caps and the buffer of the provided sample are used and not
|
||||
* for example the segment in the sample.
|
||||
* This function does not take ownership of the
|
||||
* sample so the sample 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.
|
||||
*
|
||||
*
|
||||
* Since: 1.6
|
||||
*
|
||||
*
|
||||
*/
|
||||
gst_app_src_signals[SIGNAL_PUSH_SAMPLE] =
|
||||
g_signal_new ("push-sample", G_TYPE_FROM_CLASS (klass),
|
||||
|
@ -1869,8 +1869,8 @@ gst_app_src_push_buffer (GstAppSrc * appsrc, GstBuffer * buffer)
|
|||
* @sample: (transfer none): a #GstSample from which buffer and caps may be
|
||||
* extracted
|
||||
*
|
||||
* Extract a buffer from the provided sample and adds it to the queue of
|
||||
* buffers that the appsrc element will push to its source pad. Any
|
||||
* Extract a buffer from the provided sample and adds it to the queue of
|
||||
* buffers that the appsrc element will push to its source pad. Any
|
||||
* previous caps that were set on appsrc will be replaced by the caps
|
||||
* associated with the sample if not equal.
|
||||
*
|
||||
|
@ -1880,9 +1880,9 @@ gst_app_src_push_buffer (GstAppSrc * appsrc, GstBuffer * buffer)
|
|||
* Returns: #GST_FLOW_OK when the buffer was successfuly queued.
|
||||
* #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING.
|
||||
* #GST_FLOW_EOS when EOS occured.
|
||||
*
|
||||
*
|
||||
* Since: 1.6
|
||||
*
|
||||
*
|
||||
*/
|
||||
GstFlowReturn
|
||||
gst_app_src_push_sample (GstAppSrc * appsrc, GstSample * sample)
|
||||
|
|
|
@ -160,4 +160,3 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAppSrc, gst_object_unref)
|
|||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -148,14 +148,14 @@ on_new_sample_from_source (GstAppSink * elt, gpointer user_data)
|
|||
}
|
||||
|
||||
/*
|
||||
* appsink => appsrc pipelines executed 100 times:
|
||||
* appsink => appsrc pipelines executed 100 times:
|
||||
* - appsink pipeline has sync=false
|
||||
* - appsrc pipeline has sync=true
|
||||
* - appsrc has block=true
|
||||
* after 1 second an error message is posted on appsink pipeline bus
|
||||
* when the error is received the appsrc pipeline is set to NULL
|
||||
* and then the appsink pipeline is
|
||||
* set to NULL too, this must not deadlock
|
||||
* set to NULL too, this must not deadlock
|
||||
*/
|
||||
|
||||
GST_START_TEST (test_appsrc_block_deadlock)
|
||||
|
|
Loading…
Reference in a new issue