mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 02:32:23 +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:
|
* ways:
|
||||||
*
|
*
|
||||||
* The push mode, in which the application repeatedly calls the push-buffer/push-sample
|
* 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
|
* 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
|
* 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
|
* 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 of operation for the stream-type "stream" and "seekable". Use this
|
||||||
* mode when implementing various network protocols or hardware devices.
|
* mode when implementing various network protocols or hardware devices.
|
||||||
*
|
*
|
||||||
* The pull mode, in which the need-data signal triggers the next push-buffer call.
|
* 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
|
* @appsrc: the appsrc
|
||||||
* @sample: a sample from which extract buffer to push
|
* @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
|
* 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
|
* 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.
|
* in the sample and reset the caps if they change.
|
||||||
* Only the caps and the buffer of the provided sample are used and not
|
* Only the caps and the buffer of the provided sample are used and not
|
||||||
* for example the segment in the sample.
|
* for example the segment in the sample.
|
||||||
* This function does not take ownership of the
|
* This function does not take ownership of the
|
||||||
* sample so the sample needs to be unreffed after calling this function.
|
* 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
|
* When the block property is TRUE, this function can block until free space
|
||||||
* becomes available in the queue.
|
* becomes available in the queue.
|
||||||
*
|
*
|
||||||
* Since: 1.6
|
* Since: 1.6
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
gst_app_src_signals[SIGNAL_PUSH_SAMPLE] =
|
gst_app_src_signals[SIGNAL_PUSH_SAMPLE] =
|
||||||
g_signal_new ("push-sample", G_TYPE_FROM_CLASS (klass),
|
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
|
* @sample: (transfer none): a #GstSample from which buffer and caps may be
|
||||||
* extracted
|
* extracted
|
||||||
*
|
*
|
||||||
* Extract a buffer from the provided sample and adds it to the queue of
|
* 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
|
* 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
|
* previous caps that were set on appsrc will be replaced by the caps
|
||||||
* associated with the sample if not equal.
|
* 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.
|
* Returns: #GST_FLOW_OK when the buffer was successfuly queued.
|
||||||
* #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING.
|
* #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING.
|
||||||
* #GST_FLOW_EOS when EOS occured.
|
* #GST_FLOW_EOS when EOS occured.
|
||||||
*
|
*
|
||||||
* Since: 1.6
|
* Since: 1.6
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
GstFlowReturn
|
GstFlowReturn
|
||||||
gst_app_src_push_sample (GstAppSrc * appsrc, GstSample * sample)
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#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
|
* - appsink pipeline has sync=false
|
||||||
* - appsrc pipeline has sync=true
|
* - appsrc pipeline has sync=true
|
||||||
* - appsrc has block=true
|
* - appsrc has block=true
|
||||||
* after 1 second an error message is posted on appsink pipeline bus
|
* after 1 second an error message is posted on appsink pipeline bus
|
||||||
* when the error is received the appsrc pipeline is set to NULL
|
* when the error is received the appsrc pipeline is set to NULL
|
||||||
* and then the appsink pipeline is
|
* 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)
|
GST_START_TEST (test_appsrc_block_deadlock)
|
||||||
|
|
Loading…
Reference in a new issue