Joan Pau Beltran
c6722c06a0
appsink: add _pull_sample/preroll() variants with timeout
...
The _pull_sample() and _pull_preroll() functions block
until a sample is available, EOS happens or the pipeline
is shut down (returning NULL in the last two cases).
This adds _try_pull_sample() and _try_pull_preroll()
functions with a timeout argument to specify the maximum
amount of time to wait for a new sample.
To avoid code duplication, wait forever if the timeout is
GST_CLOCK_TIME_NONE and use that to implement
_pull_sample/_pull_preroll with the original behavior.
Add also corresponding action signals "try-pull-sample"
and "try-pull-preroll".
https://bugzilla.gnome.org/show_bug.cgi?id=768852
2016-07-18 16:55:16 +01:00
Seungha Yang
50f74daa2f
appsrc: Remove trailing whitespace
...
https://bugzilla.gnome.org/show_bug.cgi?id=768510
2016-07-11 09:54:11 +03:00
Sebastian Dröge
1032f5c1b3
appsrc: If do-timestamp=TRUE, capture the time when the buffer was pushed to the source
...
... instead of the time when it was pushed further downstream.
https://bugzilla.gnome.org/show_bug.cgi?id=763630
2016-07-01 14:32:26 +02:00
Tim-Philipp Müller
d52a74f32e
g-i: pass compiler env to g-ir-scanner
...
It's what introspection.mak does as well. Should
fix spurious build failures on gnome-continuous.
2016-05-24 00:44:21 +01:00
Tim-Philipp Müller
7c5ee9d3ef
app: remove marshaller files from git
2016-05-16 09:20:36 +01:00
Tim-Philipp Müller
75f3c7cb85
app: use generic marshallers
2016-05-15 15:26:13 +01:00
Sebastian Dröge
dc8120f298
appsrc: Add duration property for providing a duration in TIME format
...
https://bugzilla.gnome.org/show_bug.cgi?id=766229
2016-05-10 16:50:32 +03:00
Vineeth TM
44b70ca3a1
base: use new gst_element_class_add_static_pad_template()
...
https://bugzilla.gnome.org/show_bug.cgi?id=763075
2016-03-24 14:25:41 +02:00
Arun Raghavan
91084f49c0
appsrc: Minor documentation cleanup
2016-01-19 12:56:20 +05:30
Evan Callaway
a1f789770d
Add WAIT_ON_EOS flag to gstappsink.
...
If set, an appsink that receives an EOS will wait until all of its buffers have been processed before continuing.
https://bugzilla.gnome.org/show_bug.cgi?id=756187
2016-01-18 13:23:55 +02:00
Kazunori Kobayashi
d43f1b2a5a
appsrc: Clear is_eos flag when receiving the flush-stop event
...
The EOS event can be propagated to the downstream elements when
is_eos flag remains set even after leaving the flushing state.
This fix allows this element to normally restart the streaming
after receiving the flush event by clearing the is_eos flag.
https://bugzilla.gnome.org/show_bug.cgi?id=759110
2015-12-19 11:35:39 +01:00
Xavier Claessens
429860e51f
base: Add g_autoptr() support to all types
...
https://bugzilla.gnome.org/show_bug.cgi?id=754464
2015-12-14 13:39:43 -05:00
Philippe Normand
872f40d7d9
appsrc: duration query support based on the size property
...
https://bugzilla.gnome.org/show_bug.cgi?id=759126
2015-12-08 12:42:46 +02:00
Reynaldo H. Verdejo Pinochet
4ed7b0a0e6
Drop usage of deprecated g-ir-scanner --strip-prefix flag
2015-12-02 20:19:43 -08:00
Perry Hung
c5c2466d36
app: pass PKG_CONFIG_PATH for gir files for libgstapp as well
...
gir include search directories should respect PKG_CONFIG_PATH,
just like we do everywhere else. Makes g-i pick up the right
paths when using ./configure --with-pkg-config-path=
https://bugzilla.gnome.org/show_bug.cgi?id=755494
2015-09-29 13:10:35 +01:00
Christophe Fergeau
f096f1f9d3
appsink: Fix 'steaming' typo in API doc
...
There are several occurrences of 'steaming' where 'streaming' was meant.
2015-09-18 17:48:49 +02:00
Tim-Philipp Müller
a7bcdc3608
appsink: minor docs fix
2015-09-15 16:32:45 +01:00
Sebastian Dröge
8613525301
appsrc: Always take the mutex before flushing the queue
...
Otherwise the application might push new buffers into the queue while we're
flushing, potentially causing the GQueue data structure to become inconsistent
and causing crashes soon after.
https://bugzilla.gnome.org/show_bug.cgi?id=754597
2015-09-09 12:33:02 +03:00
Vikram Fugro
bbe967a278
appsrc: retain the latest caps in queue when flushing
...
- Retain the latest caps in the internal queue, when
flushing.
- Add a unit test case for the same.
https://bugzilla.gnome.org/show_bug.cgi?id=754597
2015-09-09 12:27:40 +03:00
Philippe Normand
9361f7c576
appsrc: remove duplicate get_size vfunc assignment
2015-08-31 12:11:10 +03:00
George Kiagiadakis
897371ac4f
appsink: unref the preroll buffer and cleanup the segments on stop()
...
Just for consistency. No need to keep data around.
2015-08-14 19:27:07 +02:00
George Kiagiadakis
c3e4d8ca6f
appsink: do not update preroll_caps unless the sink is prerolling
...
Just for consistency with the preroll_segment
2015-08-14 19:27:07 +02:00
George Kiagiadakis
c411819452
appsink: put the correct segment in the preroll sample
...
last_segment is only being updated in dequeue_buffer(),
which is only called from _pull_sample(). _pull_preroll()
simply re-uses an old or dummy segment while the actual
one sits and waits in the queue.
https://bugzilla.gnome.org/show_bug.cgi?id=751147
2015-08-14 19:27:06 +02:00
Nicolas Dufresne
c101452a4a
gi: Use INTROSPECTION_INIT for --add-init-section
...
This new define was added to common. The new init section fixed
compilation warning found in the init line that was spread across
all files.
2015-06-16 18:04:57 -04:00
Tim-Philipp Müller
8304893d06
appsrc: optimise caps changing when previously-set caps have not taken effect yet
...
Only negotiate/change caps once when setting caps twice and
the first-set caps have not been used yet.
Based on patch by Eunhae Choi.
https://bugzilla.gnome.org/show_bug.cgi?id=747517
2015-05-18 13:37:54 +01:00
Tim-Philipp Müller
c680e324bc
Remove obsolete Android build cruft
...
This is not needed any longer.
2015-04-26 18:42:34 +01:00
Ilya Konstantinov
d668b511d1
appsrc: docs grammar fixes
...
https://bugzilla.gnome.org/show_bug.cgi?id=747516
2015-04-09 20:39:42 +01:00
Edward Hervey
3eb35c77cc
introspection: Don't use g-ir-scanner cache at compile time
...
It pollutes user directories and we don't need to cache it
https://bugzilla.gnome.org/show_bug.cgi?id=747095
2015-03-31 11:21:43 +02:00
Nicola Murino
f23736d52f
appsrc: handle a sample not having caps or a buffer more gracefully
...
https://bugzilla.gnome.org/show_bug.cgi?id=746908
2015-03-28 12:00:38 +00:00
Sebastian Dröge
8547594727
Improve and fix LATENCY query handling
...
This now follows the design docs everywhere, especially the maximum latency
handling.
https://bugzilla.gnome.org/show_bug.cgi?id=744106
2015-02-11 17:53:49 +02:00
Sebastian Dröge
ce8d261cd6
appsink: Only emit EOS signal after all buffers are consumed
...
Otherwise the application will possibly shut down the pipeline already
because EOS is received, while there are still some buffers pending.
2015-01-20 19:22:15 +01:00
Sebastian Dröge
6129d1bd18
appsink: Fix gst_app_sink_pull() docs to transfer full for the return value
...
Also we get a GstSample, not a GstBuffer here.
2014-10-20 15:31:29 +02:00
Sebastian Dröge
2a35a881b0
app: Add FIXME comment for making the instance/class structs private
2014-09-16 00:43:37 +03:00
Tim-Philipp Müller
ab58a9af2f
appsrc: fix recent ABI breakage caused by GstAppSrc structure size increase
...
Also fixes 'make check'.
https://bugzilla.gnome.org/show_bug.cgi?id=728379
2014-09-15 21:52:14 +01:00
Nicola Murino
617f72b526
appsrc: Add push_sample() convenience function for easy appsink -> appsrc use
...
https://bugzilla.gnome.org/show_bug.cgi?id=728379
2014-09-12 14:07:49 +03:00
Sebastian Dröge
8fc307fae0
appsrc: Some minor fixes and cleanup
2014-08-06 10:07:42 +02:00
Wang Xin-yu (王昕宇)
251c63c4ab
appsrc: Make caps set action queued together with buffer
...
https://bugzilla.gnome.org/show_bug.cgi?id=729760
2014-08-06 10:04:49 +02:00
Youness Alaoui
6b0063aab5
appsrc: Fix memory leak with callback notify not being called in dispose
...
https://bugzilla.gnome.org/show_bug.cgi?id=733386
2014-07-19 14:38:36 +02:00
Thiago Santos
bbf226d9d6
appsrc: add send_event handler for flushing
...
Adds a send_event handling for allowing appsrc to flush its internal
data, allowing users to flush the pipeline without setting it to null.
https://bugzilla.gnome.org/show_bug.cgi?id=724231
2014-06-10 12:59:53 -03:00
Tim-Philipp Müller
bcb8068e27
docs: remove outdated and pointless 'Last reviewed' lines from docs
...
They are very confusing for people, and more often than not
also just not very accurate. Seeing 'last reviewed: 2005' in
your docs is not very confidence-inspiring. Let's just remove
those comments.
2014-04-26 23:28:57 +01:00
Tom Greenwood
360ac34425
appsrc: Fix deadlock that may occur when multiple threads access appsrc at once
...
https://bugzilla.gnome.org/show_bug.cgi?id=711550
2013-11-07 18:28:09 +01:00
Sebastian Dröge
e2597e1e42
appsrc: Also provide function API for current-level-bytes and integrate into the docs
2013-07-26 11:03:08 +02:00
Changbok Chea
bdbfa45296
appsrc: Add "current-level-bytes" property
...
https://bugzilla.gnome.org/show_bug.cgi?id=704774
2013-07-26 11:03:08 +02:00
Sebastian Dröge
dbbcdf901c
app: Don't use $(GST_PLUGIN_LIBTOOLFLAGS) for real libraries
2013-04-16 14:09:43 +02:00
Sebastian Dröge
948a4a3632
gst: Add better support for static plugins
2013-04-15 15:52:58 +02:00
Nicola Murino
2a1dc7ca56
appsrc: fix deadlock setting pipeline in NULL state with block=true
2013-03-12 11:16:57 +01:00
Víctor Manuel Jáquez Leal
47a5320f7d
appsink: update the emit-signal description
...
Update the emit-signal description according to its current signals.
https://bugzilla.gnome.org/show_bug.cgi?id=695660
2013-03-11 23:26:10 +00:00
Wim Taymans
ed6e7776f3
appsrc: negotiate before popping buffer
...
First negotiate and then try to pop a buffer from the queue. This is just
to improve the debug log.
2013-02-06 10:07:47 +01:00
Wim Taymans
d4ed3ddf6f
appsrc: always take mutex before object lock
...
The locking order is to first take the appsrc mutex and then the
object lock.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=693224
2013-02-06 10:00:27 +01:00
Tim-Philipp Müller
664adc6e19
gst-libs: use GST_*_1_0 environment variables everywhere
...
The _1_0 suffixed environment variables override the
non-suffixed ones, so if we're in an environment that
sets the _1_0 suffixed ones, such as jhbuild, we need
to set those to make sure ours actually always get
used.
2013-01-16 10:16:27 +00:00