Commit cd32693
committed
unregister video decoder module when deactivated
Every video stream has its own decoder. So that when received new stream
(eg. sender restart), new decoder is created while the old is just
deactivated (display is removed and assigned to the newly created one).
But the decoder lives for some time (AFAIK removed after RTP timeout,
which is IIRC 30 sec). During the period, multiple decoders co-exist
under the same path "receiver.decoder". Since the keycontrol prints the
format obtained via control socket, almost certainly the message will be
delivered to the old (inactive) decoder with the old format.
As the solution we added module descturction when module is deactivated.
Also renamed the `video_decoder_remove_display()` to
`video_decoder_deactivate()` (2 things are done now).
Removed video_decoder_register_display() from external API - it would
not register the module again, so it cannot be used to revert the
_deactivate() call now. Currently not used, anyways.1 parent a49aa71 commit cd32693
3 files changed
Lines changed: 24 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
861 | 863 | | |
862 | 864 | | |
863 | 865 | | |
864 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
865 | 869 | | |
866 | 870 | | |
867 | 871 | | |
| |||
936 | 940 | | |
937 | 941 | | |
938 | 942 | | |
939 | | - | |
| 943 | + | |
| 944 | + | |
940 | 945 | | |
941 | 946 | | |
942 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
943 | 950 | | |
944 | 951 | | |
945 | 952 | | |
946 | | - | |
| 953 | + | |
| 954 | + | |
947 | 955 | | |
948 | 956 | | |
949 | 957 | | |
| |||
954 | 962 | | |
955 | 963 | | |
956 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
957 | 969 | | |
958 | 970 | | |
959 | 971 | | |
| |||
987 | 999 | | |
988 | 1000 | | |
989 | 1001 | | |
990 | | - | |
| 1002 | + | |
991 | 1003 | | |
992 | 1004 | | |
993 | 1005 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| |||
0 commit comments