Commit graph

24 commits

Author SHA1 Message Date
Sebastian Dröge
04b98a4ecd tsmux: Don't assert sinkpad reference counts in test
We can't be sure about the reference count if the muxer is currently
running, which can happen in the test_reappearing_pad test. An
additional reference might temporarily be owned by the srcpad task of
tsmux while iterating over the pads.
2020-04-19 19:16:25 +00:00
Vivia Nikolaidou
fecd38c8f6 tsmux: Ability for streams to disappear and reappear
Until now, any streams in tsmux had to be present when the element
started its first buffer. Now they can appear at any point during the
stream, or even disappear and reappear later using the same PID.
2020-04-15 09:07:24 +00:00
Mathieu Duponchelle
a1cadd11b8 mpegtsmux: aggregator port 2019-05-19 19:40:48 +00:00
Sebastian Dröge
fed05fcdf2 mpegtsmux: Change unit test to not generate zero-sized buffers ever 2018-12-10 14:20:14 +00:00
Tim-Philipp Müller
ec6e93d45f tests: mpegtsmux: add test for keyframe/delta flag propagation
The first output MPEG-TS packet that corresponds to a video input
buffer which had the delta flag cleared (i.e. was a keyframe)
should have the delta flag cleared as well.

This is needed e.g. by tcpserversink in order to keep track
of the last keyframe and be able to burst data to newly-
connected clients.

https://bugzilla.gnome.org/show_bug.cgi?id=706872
2015-03-15 15:54:01 +00:00
Tim-Philipp Müller
ab52bfbfa6 tests: mpegtsmux: add unit test for "alignment" property
https://bugzilla.gnome.org/show_bug.cgi?id=722129
2015-03-15 12:07:53 +00:00
Sebastian Dröge
24224f86bc mpegtsmux: Use complete caps for setting up the streams in the test 2014-05-03 12:02:58 +02:00
Edward Hervey
1f0a67f295 check: Fix mpegtsmux caps
Incoming streams need to be parsed. Doesn't fix the test completely though
2014-04-08 07:48:28 +02:00
Sebastian Dröge
366339e4b2 mpegtsmux: Fix event handling in unit test 2013-05-15 11:37:14 +02:00
Tim-Philipp Müller
ae3313df2c tests: fix up mpegtsmux unit test after collectpads change
It was passing expected flow returns (which might be negative)
in the buffer timestamp field, which was maybe not the best
idea.
2013-03-13 00:40:42 +00:00
Tim-Philipp Müller
e6e1479b75 tests: fix h264 caps in mpegtsmux test
Needs to be stream-format=byte-stream, not format=byte-stream.
2013-02-14 10:43:42 +00:00
Krzysztof Konopko
13910f5154 mpegtsmux: crashes when trying to re-use the element
A crash occured after pushing buffers and changing mpegtsmux state to
NULL/READ and then back to PLAYING/PAUSED.

The crash was caused by holding a dangling pointer in the MpegTsMux
program table.

Additionally stream headers were leaked when resetting the element:
mux->streamheader set to NULL in mpegtsmux_reset() before it's released
later in the same function.

Added a unit test: test_multiple_state_change

https://bugzilla.gnome.org/show_bug.cgi?id=689107
2012-11-27 19:00:25 +00:00
Krzysztof Konopko
76b8e8be51 mpegtsmux: propagate flow returns
And add a unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=688870
2012-11-23 00:14:53 +00:00
Tim-Philipp Müller
9e1b75fda3 Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:09:59 +00:00
Mark Nauwelaerts
84cea735e9 tests: mpegtsmux: port to the new GLib thread API 2012-09-12 13:17:08 +02:00
Mark Nauwelaerts
fc38000acd tests: mpegtsmux: add basic output unit test verification 2012-06-27 14:52:10 +02:00
Mark Nauwelaerts
947701cc6f tests: mpegtsmux: port test to 0.11 2012-06-20 12:22:09 +02:00
Mark Nauwelaerts
179c50591c tests: mpegtsmux: adjust again to modified buffer collect behaviour
... by effectively reverting previous adjustment.
2012-06-16 19:22:59 +02:00
Mark Nauwelaerts
244f28c938 tests: mpegtsmux: plug some leaks 2012-06-08 17:20:28 +02:00
Mark Nauwelaerts
f399237c52 tests: mpegtsmux: adjust to modified buffer collect behaviour 2012-06-08 12:12:06 +02:00
Alessandro Decina
34cf1a1bbc mpegtsmux: don't leak force key unit events 2012-04-16 08:53:06 +02:00
Wim Taymans
3de090c1f0 tests: fix more unit tests 2012-02-07 17:00:26 +01:00
Thiago Santos
9d33df291f tests: mpegtsmux: remove unused variable 2011-12-14 08:54:32 -03:00
Alessandro Decina
777c1f034f mpegtsmux: add support for force key unit events
Handle force key unit events outputting PAT and PMT when all_headers=TRUE
2011-11-30 08:56:48 +01:00