summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-12-07docs: Fix a few gtk-doc warningsHEADmasterTim-Philipp Müller5-5/+5
Broken links mostly.
2017-12-06tests: aggregator: fix caps leak in unit testTim-Philipp Müller1-2/+6
2017-12-06gstpad: Handle GST_PAD_PROBE_HANDLED on sticky event pushEdward Hervey1-0/+2
When actually pushing an event, if we get GST_FLOW_CUSTOM_SUCCESS_1 (which is the conversion of GST_PAD_PROBE_HANDLED return value), don't consider the stick event push as ignored, but as handled
2017-12-06event/query/message: Annotate get_structure() return value as nullableSebastian Dröge3-9/+9
2017-12-06query: Add an empty structure in writable_structure() if there is none yetSebastian Dröge1-1/+12
This is consistent with how it works for GstEvent already.
2017-12-05docs: Misc addition/fixesEdward Hervey5-3/+45
And also add the "Since" API sections for 1.12 and 1.14
2017-12-05docs: Add documentation for GST_SEQNUM_INVALIDEdward Hervey3-1/+12
And link to it
2017-12-05utils: Never return a group_id of 0, add GST_GROUP_ID_INVALIDEdward Hervey3-2/+23
Various plugins use special values (0 or G_MAXUINT32) as an invalid/unset group_id, but nothing guarantees a groupid won't have that value. Instead define a value which group_id will never have and make gst_group_id_next() always return a value different from that. API: GST_GROUP_ID_INVALID
2017-12-05harness: make bindings use the GBytes variant for _take_all_data()Tim-Philipp Müller1-1/+1
2017-12-05harness: use new take_all_data() function in _dump_to_file().Havard Graff1-18/+10
2017-12-05harness: add gst_harness_take_all_data() + _take_all_data_as_{bytes,buffer}()Tim-Philipp Müller5-0/+185
Convenience function to just grab all pending data from the harness, e.g. if we just want to check if it matches what we expect and we don't care about the chunking or buffer metadata. Based on patch by: Havard Graff <havard.graff@gmail.com>
2017-12-05buffer: document that _extract_dup() will return NULL for 0-sized bufTim-Philipp Müller1-5/+10
And make it explicit, and don't call _extract() on NULL data buffer.
2017-12-05meson: Use array syntax instead of .get() in testsNirbheek Chauhan1-2/+2
2017-12-05meson: Use new find_program fallback syntaxNirbheek Chauhan1-14/+2
We use this syntax in libs/gst/helpers/meson.build already.
2017-12-04gst: gst_element_remove_pad() is transfer none for the padSebastian Dröge1-1/+1
While the refcount of the pad is decreased, it's the refcount that is owned by the parent (i.e. the element) and not the one passed in by the caller. Fixes a memory leak in bindings.
2017-12-04aggregator: add finish_buffer() vfuncTim-Philipp Müller2-12/+34
So subclasses can override the finish behaviour and/or decorate or modify buffers before they get pushed out. https://bugzilla.gnome.org/show_bug.cgi?id=760981
2017-12-04aggregator: disable tag merging and forwarding for nowTim-Philipp Müller1-14/+6
Subclasses should handle this for now.
2017-12-04devicemonitor: Avoid maybe-uninitialized compiler warningJan Alexander Steffens (heftig)1-4/+2
On Arch Linux x86_64, gcc 7.2.0-3, -Og -g3: gstdevicemonitor.c: In function ‘bus_sync_message’: gstdevicemonitor.c:276:8: error: ‘matches’ may be used uninitialized in this function [-Werror=maybe-uninitialized] This commit also simplifies the code a bit. https://bugzilla.gnome.org/show_bug.cgi?id=789983
2017-12-03gst: Annotate various strings as type filename if they represent a path/filenameSebastian Dröge3-5/+5
2017-12-02aggregator: hook up to docsTim-Philipp Müller4-3/+65
2017-12-02aggregator: hook up to build systemTim-Philipp Müller8-5/+21
https://bugzilla.gnome.org/show_bug.cgi?id=739010
2017-12-02Move GstAggregator from -bad to coreTim-Philipp Müller3-0/+4634
Merge branch 'aggregator-move' https://bugzilla.gnome.org/show_bug.cgi?id=739010
2017-12-02aggregator: Remove klass->sinkpads_typeMathieu Duponchelle2-8/+4
This posed problems for the python bindings (and possibly others). Instead, subclasses now use add_pad_template_with_gtype. https://bugzilla.gnome.org/show_bug.cgi?id=789986
2017-12-02aggregator: add doc blurb for gst_aggregator_pad_is_eos()Tim-Philipp Müller1-0/+6
2017-12-02aggregator: also remove now-unused PadForeachFunc declarationTim-Philipp Müller1-5/+0
https://bugzilla.gnome.org/show_bug.cgi?id=785679
2017-12-02aggregator: Remove pad iterator functionOlivier Crête2-86/+0
Use new gst_element_foreach_sink_pad() from core instead. https://bugzilla.gnome.org/show_bug.cgi?id=785679
2017-12-02aggregator: use new gst_element_foreach_sink_pad()Tim-Philipp Müller1-15/+21
Instead of gst_aggregator_iterate_sinkpads() which will soon be removed. https://bugzilla.gnome.org/show_bug.cgi?id=785679
2017-12-02aggregator: add more commentsStefan Sauer1-0/+6
2017-12-02tests: comment and logging cleanups for audiomixer and aggregatorStefan Sauer1-5/+8
Remove some references to 'collectpads'. Logs pads through the object variants. Add some more comments. Remove a left over comment.
2017-12-02aggregator: fix type for latency property (int64 -> GStClockTime)Stefan Sauer1-11/+10
The value is used as GstClockTiem in the code. Adapt the hack^H^H^H^Hcode in live-adder.
2017-12-02aggregator: Don't take flush lock from output threadOlivier Crête1-7/+17
Instead just take it in the chain function. https://bugzilla.gnome.org/show_bug.cgi?id=784911
2017-12-02aggregator: Don't block if adding to the tail of the queueOlivier Crête1-1/+1
If we're adding to the tail of the queue, it's because we're converting a gap event, so don't block there it means we're calling from the output thread. https://bugzilla.gnome.org/show_bug.cgi?id=784911
2017-12-02aggregator: review code related to time levelStefan Sauer1-22/+24
Add a comment for when the state matters. Use a local var for priv in update_time_level() to improve readability. Move the our_latency local var below the query results checks.
2017-12-02aggregator: init latency values with 0 instead of FALSEStefan Sauer1-1/+1
2017-12-02aggregator: code cleanup for event and query funcStefan Sauer1-8/+8
Only look up klass for non serialized events/queries. For events remove superfluous assignment for the return value in the flushing case.
2017-12-02aggregator: simplify pad_event_func for FLUSH_STOP eventsStefan Sauer1-13/+7
We want to skip serialization for FLUSH_STOP events (apparently). We can simplify the code to add it to the top-level conditions. There was nothing done in the first code path if the event was FLUSH_STOP.
2017-12-02aggregator: drop special casing for eosStefan Sauer1-34/+3
Just queue it like any other serialized event. This way we don't need to check if there still are buffers in the queue. Validated with the tests and gst-launch-1.0 pipelines.
2017-12-02aggregator: add a doc-blob for the event_funcStefan Sauer1-0/+4
2017-12-02aggregator: rename a local variableStefan Sauer1-5/+5
The variable tracks wheter the queue is not empty, but num_buffers==0. That means we have events or queries to process. Rename accordingly.
2017-12-02aggregator: remove commented codeStefan Sauer1-2/+2
The SEGMENT_DONE event does not require any special treatment. This is commented out in 6efc106a67.
2017-12-02aggregator: move the comment for the locks to the lock macrosStefan Sauer1-6/+4
Looks like some code was inserted afterwards.
2017-12-02aggregator: improve section docsStefan Sauer1-0/+6
Mention how data ends up in the queues. Document the relation of the pad functions and the class vmethods to get events and queries.
2017-12-02aggregator: add two more tests for a sequence of dataStefan Sauer1-0/+66
This verifies that we handle events and queries at the head of the queue and then buffers.
2017-12-02aggregator: refactor the test helperStefan Sauer1-67/+89
Make the test helpers use a queue. This lets us also test sequences of events, queries and data.
2017-12-02aggregator: test cleanupStefan Sauer1-32/+15
Remove gst_init() from a few tests. Use _OBJECT variants in logging. Remove arbitrary extra blank lines. Make push_event() more like push_buffer() - set the event to NULL and add cleanup to _chain_data_clear().
2017-12-02aggregator: cleanup event forwardingStefan Sauer1-22/+21
Don't copy the whole event struct. Set the input params when we call the forwarding helper. Initialize the internal fields and return values in the helper.
2017-12-02aggregator: simplify src_eventStefan Sauer1-18/+4
Avoid extra ref/unref, we have a ref and do_seek unrefs. Just return the result as we have. This lets us remove the local var plus the label.
2017-12-02aggregator: register func for do_events_and_queriesStefan Sauer1-4/+6
This fixes logging the func ptr from _iterate_sinkpads().
2017-12-02aggregator: only set clipped_buffer to NULL if neededStefan Sauer1-1/+1
2017-12-02aggregator: rename check_eventsStefan Sauer1-7/+8
This function also handles queries. Update the code to loop until all events and queuries are handled.