Richard Fuchs
172f389395
MT#55283 safeguard against Redis connect failure
...
Avoids segfault is extra connection can't be established
Closes #1903
Change-Id: I6eb7315f6774015703c7ad036e08596f7f550d60
10 months ago
Richard Fuchs
3bbf4d94a1
MT#55283 bail if Redis contains garbage data
...
Change-Id: I76f21d6c44f04e063cb57dd04f1f631dead0600a
10 months ago
Richard Fuchs
b4c1dc8e1f
MT#61630 support evicting multiple cache entries
...
Change-Id: Ia332a6ba8b56d02bac8adefd9cff78ced4e5abc2
10 months ago
Richard Fuchs
17c7fd5375
MT#61630 support CLI commands via POST
...
Change-Id: I2970b331f4889bed7eab11d33ab16751ef4246a5
10 months ago
Richard Fuchs
9c00f30475
MT#55283 don't accept incompatible codecs
...
A matching payload type number in an answer might not be enough to
establish compatible codecs. Also check the format parameters. Reject
and ignore answer codecs that are not compatible.
Change-Id: I12a1287216886926ec4b3c704029c923f815b429
10 months ago
Richard Fuchs
9da75efc8a
MT#61822 fix possible uninitialised value
...
Change-Id: I8054de9d9cb0e1abe267f5878c2519c2addce9e8
Warned-by: Coverity
10 months ago
Richard Fuchs
048d745dfe
MT#55283 replace internal help with generated one
...
Change-Id: I2bab78c0a1ce85c1868398d48bcd2a3bab847ee2
11 months ago
Richard Fuchs
2c2daa920a
MT#55283 embed help into CLI data
...
Change-Id: Ic10a82f27653d400f75a2bcab65a7936431e2e94
11 months ago
Richard Fuchs
f19737a53f
MT#55283 add return value to cw_printf
...
Change-Id: Ibd4b6b18adb86919d99c258e526d79d4ab5d8ce1
11 months ago
Richard Fuchs
42c46f2d68
MT#55283 use string hashing for CLI parsing
...
Change-Id: I270deca0e5fc9f07be501f9a4c336244fc50be9b
11 months ago
Richard Fuchs
8e50664fa1
MT#55283 refactor CLI structures with macros
...
No functional change.
Change-Id: I8fa9b9d6ee61aafadf01016bd2ed64be6cdbfef8
11 months ago
Richard Fuchs
05cafe6c5c
MT#55283 support multiple gperf sections
...
Instead of lumping all strings of a file into a single hash function,
split them up into their respective sections, as there is no point in
matching against strings that aren't part of the switch statement. This
should give a bit of a performance boost.
Nested hash sections require special handling as the wrapper script
isn't smart enough to hande them automaticaly.
Change-Id: I74863dfe6ca412d58101d37f9c9c85078826f1a4
11 months ago
Richard Fuchs
20ac8d2dd1
MT#61822 support removing unused cache data
...
Change-Id: I99fef5dd779e1b505aa2ad17ff68cd2eef6e050d
11 months ago
Richard Fuchs
9d55bb6b35
MT#61822 report errors from caching files
...
Change-Id: Ideb8ff399a710e912aef5dbc7629e2eda8691b19
11 months ago
Richard Fuchs
d707e206ea
MT#61822 track and report cache mtimes and atimes
...
Change-Id: Idaaebe925aa26275002bb2c436b13216c7e99064
11 months ago
Richard Fuchs
dd04af1163
MT#55283 fork to background before init HTTP/WS
...
HTTP/WS init creates worker threads, which would be terminated by a fork
to background. Reverse the order.
Closes #1896
Possibly also relevant to #1895
Change-Id: I30b61e07ad3bed41b6b241e8943ed479277c1474
11 months ago
Dennis Yurasov
d559a537c6
MT#55283 Added several useful fields for mqtt stats publishing
...
Closes #1899
Change-Id: Ib7553a4aa173f460dc0a59b7bb1adbc4b98757b8
11 months ago
Richard Fuchs
9673703476
MT#61822 add new "CLI" NG command
...
Change-Id: Idd4114783b1bb6cc683970110a2f322ec07b894a
11 months ago
Richard Fuchs
d436c1d361
MT#61822 support evicting player cache data
...
Change-Id: I58c1127f2b906a3e238a2dc8579d433abe72c50b
11 months ago
Richard Fuchs
601abd2e5b
MT#61822 add list player cache
...
Change-Id: If40ab9218354b95ef2b4fba47cd5e38ab318a325
11 months ago
Richard Fuchs
bce0b8fc43
MT#61822 refcount media_player_cache_entry
...
Change-Id: I5a88a78070dd0b45731a70ad738d33cc48a2524a
11 months ago
Richard Fuchs
98a7c1ef06
MT#61822 include index object in entry
...
Change-Id: Ibeb100727ded16db788faaee750b60b7bd6a04be
11 months ago
Richard Fuchs
7f7259c260
MT#61822 refcount media players in hash
...
Change-Id: Id166918e97ea2dbe644543ccfd78d7c4323b70e6
11 months ago
Richard Fuchs
1191d2e8ca
MT#61822 hold call reference while decoding
...
The media blob is owned by the call, so we need to hold a reference to
the call until decoding is finished.
Change-Id: I6ed0d35edb485aad2811b287706ef101c4aa2c3f
11 months ago
Richard Fuchs
f0160d1c9d
MT#61822 use auto lock
...
Change-Id: Ice8a889f238f545dbd649e38e4f2833862ddaf00
11 months ago
Richard Fuchs
03b16d4ba7
MT#61822 add more debug log output
...
Change-Id: I345937e794088593b94c4d4b432d88d354285756
11 months ago
Richard Fuchs
bb03710131
MT#61822 use transparent union as arg
...
Change-Id: Icbba155570f583e49b02e797079082c3896a775d
11 months ago
Richard Fuchs
597229f4c8
MT#61822 add player_cache stats metric
...
Change-Id: Ie65070f1a0ea87aebb2f11b2089fdf94969f9986
11 months ago
Richard Fuchs
3694539bc5
MT#61822 switch to typed media_player_cache_ht
...
Change-Id: I04e8dd888fa65c4f43423693feb711af34030a84
11 months ago
Richard Fuchs
cd2c585958
MT#61822 add metric for cache size
...
Change-Id: I775839f6482b24fce216e32c1589d7eb91174c72
11 months ago
Richard Fuchs
e6172c34a2
MT#61822 add CLI cmd to add cached media
...
Change-Id: I749833d1548069444b36d1933a56080eebf9583d
11 months ago
Richard Fuchs
dcdeb6a9de
MT#61822 add db-cache-reload
...
Change-Id: I4976329d2a778fc9a87773a2d85c48bc1b0977ba
11 months ago
Richard Fuchs
4755594f90
MT#61822 fix with_transcoding=no warnings
...
Change-Id: Ic1996eceda52befe869c7de5851453a256be0f70
11 months ago
Richard Fuchs
8286cc93b9
MT#61822 support reloading of FS cache
...
Change-Id: I028a9f8ffb6ff51f753744fc39d0a5c0b19a9e7b
11 months ago
Richard Fuchs
ff16ac27f5
MT#61822 support on-demand loading to FS cache
...
Change-Id: Ifce951e52710fdb12ccb0de5d1a110b6f05a9873
11 months ago
Richard Fuchs
84998ced95
MT#61822 support preloading DB media to FS
...
Change-Id: I72a66a22d0eb75b7ea4a24c7c001c74fb25ca39b
11 months ago
Richard Fuchs
0fd3ac73a8
MT#61822 supporting removing entries from FS cache
...
Change-Id: Ie358778ce5d8d6872bc4964367cf0ec22296934f
11 months ago
Richard Fuchs
33be3468a7
MT#61822 support listing contents of FS cache
...
Change-Id: I31f9fe2bd0b95e832e285fa96ea969c703a816be
11 months ago
Richard Fuchs
a2ffa18d6c
MT#61822 add CLI command to list media cache
...
Change-Id: I41d388abefa1b356d7fecf7b1dc662d899a8f9ac
11 months ago
Richard Fuchs
33128b8c4a
MT#61822 add mechanism to remove cached media
...
Change-Id: I4be32b9b7cf122f09b891aff616c18f5ac883cd9
11 months ago
Richard Fuchs
48cbb29371
MT#61822 support FS cache for DB media
...
Change-Id: I1dd390843f4b02eb64587673d33b9291bd9acac1
11 months ago
Richard Fuchs
84568b3905
MT#61822 use ARG_FILENAME where appropriate
...
Change-Id: I2aa74dcd7daec716e27c94f493c60d573717d4b2
11 months ago
Richard Fuchs
db9144b91c
MT#61822 support on-demand loading of DB media
...
Change-Id: Ia356fbebdbb752ea7da314b8b16481eb302204d1
11 months ago
Richard Fuchs
40bb74ad52
MT#61822 add db-media-reload option
...
Change-Id: I50dbd868eeea2dd15d6cf95f5b80d5b4183f7d10
11 months ago
Richard Fuchs
e7c424d1ac
MT#61822 support preloading media from DB
...
Change-Id: Ieba8c9dd7ee413c64292a2fd48a16d38bade6be3
11 months ago
Richard Fuchs
52b6e6ea58
MT#61822 split up __media_player_add_db
...
Create separate function which only does the reading from DB and returns
the blob. Refactor __media_player_add_db to use this new function.
This slightly changes string allocation semantics: Instead of leaving
the string in the DB buffer and then letting
__media_player_add_blob_id() do the allocation and duplication, we now
immediately duplicate the string into the call's memory arena and
immediately free the DB buffers. __media_player_add_blob_id's
duplication then turns into a no-op thanks to call_ref().
Change-Id: I4360c7b0e8ec3c9b68cfc5b34b48115d8f4f89b0
11 months ago
Richard Fuchs
349249f423
MT#61822 add on-demand caching of memory files
...
Change-Id: I39deff0fd89d45df5739900dac3aa236f528161c
11 months ago
Richard Fuchs
5ba1793aff
MT#61822 add media-files-reload option
...
Change-Id: Ica0aaa49a772ce7a078858d720a215de5bb557f6
11 months ago
Richard Fuchs
ab0c2b0528
MT#61822 check for break before warning
...
Change-Id: I244675f88f19ac0361a75e8762e7557497901149
11 months ago
Richard Fuchs
77e8542229
MT#61822 add CLI command to reload media
...
Change-Id: I9c8c5423f1872169d9690282626abaad41c2597d
11 months ago