Commit graph

11 commits

Author SHA1 Message Date
Sebastian Dröge
09d7555653 scc_enc: Don't assert if we're trying to write a line without anything buffered
This can happen at EOS if everything was fully written out before
already, for example.
2019-02-12 14:35:22 +02:00
Sebastian Dröge
aebbe8c39b scc_parse: Don't send a new caps event for every new line
Only send new caps when the framerate has actually changed.
2019-02-12 14:34:19 +02:00
Jordan Petridis
e8c5884931
closedcaption: Add SCC parser and encoder plugins 2019-02-08 23:44:28 +02:00
Jordan Petridis
ca012cd4f0
mcc_parse: On FlushStop reset all of the state 2019-02-08 23:44:28 +02:00
Jordan Petridis
c4885c6aab
mcc_enc: Set buffer metadata for outgoing buffers
Copies the metadata over from the input buffers
2019-02-07 15:35:48 +02:00
Jordan Petridis
02655a9dce
mcc_enc: Remove unused fields
These fields were never initialized in the first place.
2019-02-07 14:31:50 +02:00
Jordan Petridis
23071c1e0e
mcc_parse: save the last_timecode to have a fallback
If the current timecode can't be parsed, the plugin falls back
to last knonw timecode to at least have something. The code
that does this already existed but the last_timecode was just
never set.
2019-02-07 14:31:35 +02:00
Sebastian Dröge
9db02cb55e Fixes for gstreamer-rs API changes
Creating pad templates can return None now.
2019-01-29 17:33:06 +02:00
Jordan Petridis
45ebb4c629
mccparse: Refactor huge line-handling function into smaller separate functions
* The Debug category was moved to a lazy_static!.
This allowed for a couple of methods, to be implemented
directly against the State struct since the debug category
was their only dependency from MccParse.

* Log the Caps/Format change
2019-01-22 16:48:12 +02:00
Jordan Petridis
45c765fb57 closedcaption: remove unnecessary extern crate declarations
The ones for gstreamer and glib are left there to avoid importing
the macros from weird paths, since the bindings are not yet ready
for this modules system
2019-01-13 14:23:31 +02:00
Sebastian Dröge
774110ec0a closedcaption: Add closed caption plugin with an MCC parser and encoder 2019-01-13 14:23:31 +02:00