Commit graph

17567 commits

Author SHA1 Message Date
Tim-Philipp Müller
311df0166f Automatic update of common submodule
From 48a5d85 to dd9d403
2017-08-17 12:13:31 +01:00
Sebastian Dröge
e0696c5432 identity: Return FLUSHING instead of EOS and don't start waiting for anything if currently flushing
Otherwise we might try unscheduling a clock id (that does not exist
yet), then the streaming thread waits for id and the state change never
continues because the streaming thread is blocked.

Also shutting down and flushing and similar should return FLUSHING, not
EOS. The stream is not over, we're just not accepting any buffers
anymore.
2017-08-17 13:39:46 +03:00
Sebastian Dröge
d3cfdad8c8 queue: Allow re-usability after EOS
After EOS, it is possible for a pad to be resetted by sending
either a STREAM_START or SEGMENT event

Mimic the same behaviour when receiving STREAM_START/SEGMENT events
in queue if we are EOS'd

https://bugzilla.gnome.org/show_bug.cgi?id=786056
2017-08-11 11:15:07 +03:00
Edward Hervey
41bc32d45d queue2: Allow re-usability after EOS
After EOS, it is possible for a pad to be resetted by sending
either a STREAM_START or SEGMENT event

Mimic the same behaviour when receiving STREAM_START/SEGMENT events
in queue2 if we are EOS'd

https://bugzilla.gnome.org/show_bug.cgi?id=786056
2017-08-11 11:01:03 +03:00
Edward Hervey
f303529ebb plugins: *queue* elements: Handle STREAM_START in EOS situation
When queue-like elements are in "EOS" situation (received GST_FLOW_EOS
from downstream or EOS was pushed), they drain buffers/events that
wouldn't be processed anyway and let through events that might
modify the EOS situation.

Previously only GST_EVENT_EOS and GST_EVENT_SEGMENT events were let
through, but we also need to allow GST_EVENT_STREAM_START to go
through since it resets the EOS state of pads since 1.6

https://bugzilla.gnome.org/show_bug.cgi?id=786034
2017-08-11 11:00:57 +03:00
Edward Hervey
52e8961e16 queue2: Handle buffering levels on NOT_LINKED
When downstream returns NOT_LINKED, we return the buffering level
as being 100%.

Since the queue is no longer being consumed/used downstream, we
want applications to essentially "ignore" this queue for buffering
purposes.

If other streams are still being used, those stream buffering levels
will be used. If none are used, upstream will post an error message
on the bus indicating no streams are used.

https://bugzilla.gnome.org/show_bug.cgi?id=785799
2017-08-11 11:00:50 +03:00
Sebastian Dröge
f36083a99f pad: Recheck sticky events after non-blocking buffer probes and blocking event probes
Without the former, event changes (e.g. setting a pad offset) does not
take effect for the current buffer but only for the next one. Without
the latter, non-blocking event probes would not see any updated events
yet.
2017-08-11 11:00:38 +03:00
Sebastian Dröge
2225448db4 segment: Add missing out annotations for various parameters 2017-08-11 11:00:30 +03:00
Sebastian Dröge
dca812c58c Release 1.12.2 2017-07-14 14:01:13 +03:00
Sebastian Dröge
808b61e7d0 Update .po files 2017-07-14 13:19:58 +03:00
Jason Lin
d7c47d1562 basesink: fix buffer leaks if preroll failed
buffer is not unreferened if preroll failed

:Detailed Notes:
- Problem : video freeze when switching from pause to 1/2-FF repeatedly
- RootCause : buffer leaks in basesink
- Solution : unref the buffer if prerolled failed

:Testing Preformed:
How to Test :
pause -> 1/2 FF -> resume -> pause -> 1/2 FF ...

https://bugzilla.gnome.org/show_bug.cgi?id=784932
2017-07-14 16:54:09 +10:00
Tim-Philipp Müller
97dde4b0cc meson: check for ppoll() as well 2017-07-03 20:49:20 +01:00
Thibault Saunier
41bb7c66e2 meson: Add configinc as include_directory in tools/
Otherwise when the glib is used as a subproject config.h is the glib
one, not ours.
2017-07-03 20:49:14 +01:00
Tim-Philipp Müller
64fb438b69 meson: fix with-package-name option
https://bugzilla.gnome.org/show_bug.cgi?id=784082
2017-07-03 20:48:52 +01:00
Nicolas Dufresne
486dd447e6 baseparse: sinkcaps can be NULL in default caps negotiation
This was causing harmless assertion about the unreffed caps not being of
type caps.

https://bugzilla.gnome.org/show_bug.cgi?id=784041
2017-07-03 20:47:39 +01:00
Sebastian Dröge
ab3f333dd0 Release 1.12.1 2017-06-20 12:04:50 +03:00
Sebastian Dröge
04ca079069 Update .po files 2017-06-20 11:11:23 +03:00
Sebastian Dröge
c7f2c157dc po: Update translations 2017-06-20 11:06:16 +03:00
Sebastian Dröge
2aac816811 Update .po files 2017-06-20 11:04:33 +03:00
Heekyoung Seo
a0207baabd utils: Fix leak in failed case of regression overflow checking
https://bugzilla.gnome.org/show_bug.cgi?id=783978
2017-06-20 10:58:22 +03:00
Heekyoung Seo
9fc5d66ed1 registrychunk: Fix leak in failed case of reading plugin dependency string
https://bugzilla.gnome.org/show_bug.cgi?id=783978
2017-06-20 10:58:22 +03:00
Sebastian Dröge
70a0ee4c75 controller: Export boxed type copy/free functions for GstControlPoint 2017-06-20 10:09:06 +03:00
Sebastian Dröge
226d01a941 base: Export boxed type copy/free functions for the remaining types 2017-06-20 10:08:38 +03:00
Andrejs Vasiljevs
ac31a3c1d1 ptp: Unref timeout GSource for delay requests
https://bugzilla.gnome.org/show_bug.cgi?id=783864
2017-06-17 10:52:45 +03:00
Sebastian Dröge
326541ee7e gsturi: Fixed incorrect escaping of path as a generic string
The gst_uri_construct function was escaping the location string
as a generic uri string. This is incorrect since the slash('/')
characters are reserved for use in this exact case. The patch
changes the escape_string function mode to handle the path correctly.

In 1.14 this function will be deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=783787
2017-06-15 11:40:51 +03:00
Olivier Crête
2325d00eee basesrc: Hold object lock while updating latency
Otherwise in gst_base_src_query_latency(), it ended up
sometimes thinking it wasn't -1 when it was actually.
2017-05-29 10:55:31 +03:00
Sebastian Dröge
b43f6b016e object: Add missing annotations to get_value_array() / get_value_g_array()
Same as already used in GstControlBinding.
2017-05-29 10:55:25 +03:00
Sebastian Dröge
e99368a03f parse: Make gst_parse_context_copy() public for bindings 2017-05-29 10:55:16 +03:00
Matthew Waters
f9e6e42445 debugutils: add missing E character to the legend
The E character on pads indicates the presence of the EOS flag.
2017-05-20 16:59:43 +01:00
Tim-Philipp Müller
aecae4fa73 tools: dist new gst-stats man page
Fixes meson build from tarball.
2017-05-20 16:59:37 +01:00
Tim-Philipp Müller
d5bdfa64dd meson: fix gstprintf test linking
Must link against gstprint helper lib to use private symbol.
2017-05-20 16:59:37 +01:00
Tim-Philipp Müller
de43733c3d meson: add options to set package name and origin
https://bugzilla.gnome.org/show_bug.cgi?id=782172
2017-05-20 16:59:37 +01:00
Sebastian Dröge
7854a65978 Release 1.12.0 2017-05-04 15:36:55 +03:00
Sebastian Dröge
d307d8d333 Update .po files 2017-05-04 15:00:16 +03:00
Sebastian Dröge
cd3a49b69b message: Don't pass a NULL debug string to g_utf8_validate()
g_utf8_validate() crashes on NULL, but NULL is valid for the debug
string nonetheless.
2017-05-02 14:35:50 +03:00
Sebastian Dröge
733de3190b adapter: Check if meta transform_func is NULL before using it
https://bugzilla.gnome.org/show_bug.cgi?id=782050
2017-05-02 14:27:14 +03:00
Frédéric Dalleau
ca7fa6a661 basetransform: Check if meta transform_func is NULL before using it
An untested pointer segfaulted in webkit while playing video
on imx6 sabrelite. It turned out that the imx plugin didn't
implement the meta transform function.

The following GST_DEBUG trace was visible:
gstbasetransform.c:1779:foreach_metadata:<conv2> copy metadata
                                                GstImxVpuBufferMetaAPI

Thread 26 vqueue:src received signal SIGSEGV, Segmentation fault.

(gdb) bt
 0x00000000 in ?? ()
 0x73f8d7d8 in foreach_metadata (inbuf=0xc9b020, meta=0x474b2490,
                  user_data=<optimized out>) at gstbasetransform.c:1781
 0x73eb3ea8 in gst_buffer_foreach_meta (buffer=buffer@entry=0xc9b020,
                  func=0x73f8d705 <foreach_metadata>,
                  user_data=user_data@entry=0x474b24d4)
                  at gstbuffer.c:2234

https://bugzilla.gnome.org/show_bug.cgi?id=782050
2017-05-02 14:26:21 +03:00
Víctor Manuel Jáquez Leal
d108ed2251 gst: check non-null before dereference
It is possible to use gst_deinit() without registering the base
classes. For example, when using gst_init_get_option_group() and
call the program with an invalid parameter. In that case,
gst_deinit() will lead to a segmentation fault, since there is a
dereference to a pointer that is null.

This patch validates if the type is non-null before dereferencing
it.

https://bugzilla.gnome.org/show_bug.cgi?id=781914
2017-04-28 21:01:43 +02:00
Nicola Murino
46e8be110d gst-uninstalled: add opencv to bad libs
https://bugzilla.gnome.org/show_bug.cgi?id=781889
2017-04-28 12:20:19 +01:00
Sebastian Dröge
a0d2f0a464 Release 1.11.91 2017-04-27 17:24:05 +03:00
Sebastian Dröge
cfe9979bb0 Update .po files 2017-04-27 15:48:33 +03:00
Sebastian Dröge
57f6ed51cc po: Update translations 2017-04-27 15:21:26 +03:00
Tim-Philipp Müller
2c23b9e080 Automatic update of common submodule
From 60aeef6 to 48a5d85
2017-04-24 20:27:33 +01:00
Koop Mast
97cacb78e3 Meson: also build and install gst-stats-1.0 and it's man page.
https://bugzilla.gnome.org/show_bug.cgi?id=781585
2017-04-21 10:55:55 -03:00
Koop Mast
8b06627df9 Add very simple man page for gst-stats.
https://bugzilla.gnome.org/show_bug.cgi?id=781585
2017-04-21 10:55:55 -03:00
Thibault Saunier
b15d59b53c doc: Fix some doctsing making GI happy 2017-04-21 10:51:59 -03:00
Thibault Saunier
e6db45a8af doc: Fix GstChangeState docstring 2017-04-20 17:58:08 -03:00
Sebastian Dröge
04676df4a8 info: Move debug output in for_each_threshold_by_entry() to TRACE level
It's otherwise appearing many, many times in logs and usually is nothing
you're interested in.
2017-04-19 17:32:17 +01:00
Vincent Penquerc'h
8d32fbb714 tests: fix message leak in seek test
https://bugzilla.gnome.org/show_bug.cgi?id=780757
2017-04-19 13:39:46 +01:00
Yasushi SHOJI
c423df49af basetransform: fix typo in debug log output
This unbalanced closing parenthesis is leftover from the commit
8b739d91e7. It used to wrap the caps but we don't seem to do that in
the current code.

So, just remove it. No functionality has been changed.

https://bugzilla.gnome.org/show_bug.cgi?id=781484
2017-04-19 09:21:32 +01:00