Skip to content

Commit e607cd8

Browse files
authored
Merge pull request #10 from pbiering/master
v0.9.6
2 parents 95f250e + 76021ef commit e607cd8

File tree

22 files changed

+541
-274
lines changed

22 files changed

+541
-274
lines changed

HISTORY

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
VDR Plugin 'mcli' Revision History
22
----------------------------------
3+
2021-06-12 0.9.6
4+
- pbiering several log extensions
5+
6+
2021-04-03 0.9.6pre8
7+
- pbiering fix idle priority handling
8+
9+
2021-03-30
10+
- pbiering add additional option '-n' to netcvupdate to use 'lftp' as FTP client
11+
12+
2021-03-21 0.9.6pre7
13+
- extend with (currently hardcoded timings) interface watcher
14+
15+
2021-03-16 0.9.6pre6
16+
- pbiering apply adjusted fixes from https://www.vdr-portal.de/forum/index.php?thread/134181-mcli-error-video-data-stream-broken/&postID=1337872#post1337872
17+
18+
2021-03-16 0.9.6pre5
19+
- pbiering add error/debug log for PreInit related to network device
20+
21+
2021-03-13 0.9.6pre4
22+
- pbiering in case of --cam-disable option is active, do not enable triggerCam
23+
24+
2021-03-12 0.9.6pre3
25+
- pbiering apply vdr-plugin-mcli-0.9.6n_05-FixSetChannelDeviceCamAlloc.patch from https://www.vdr-portal.de/forum/index.php?thread/134181-mcli-error-video-data-stream-broken/&postID=1337625#post1337625
26+
27+
2021-03-12 0.9.6pre2
28+
- pbiering apply vdr-plugin-mcli-0.9.6m_02-DeviceReadyWithCi.patch from https://www.vdr-portal.de/forum/index.php?thread/134181-mcli-error-video-data-stream-broken/&postID=1337593#post1337593
29+
- pbiering apply vdr-plugin-mcli-0.9.6m_01-TriggerCamAllPids.patch from https://www.vdr-portal.de/forum/index.php?thread/134181-mcli-error-video-data-stream-broken/&postID=1337593#post1337593
30+
31+
2021-03-11 0.9.6pre1
32+
- pbiering introduce PreInit and PostExit to avoid crashes in case of other plugins have fatal issues and VDR has to stop instantly
33+
34+
2021-02-25
35+
- pbiering add triggerCam patch from https://www.vdr-portal.de/forum/index.php?thread/134181-mcli-error-video-data-stream-broken/&postID=1336731#post1336731
36+
37+
2021-02-08
38+
- pbiering fix spec file for rpmbuild -ta
39+
40+
2021-02-07
41+
- pbiering add more header include fixes based on contribution from HelmutB
42+
43+
2021-02-06
44+
- pbiering add additional special debug masks (see README), align/fix log prefix to "mcli::"
45+
46+
2021-02-05
47+
- pbiering add log skip mask option (--logskipmask) (see logging.h)
48+
- pbiering improve debugging enhancement based on contribution from HelmutB
49+
350
2021-02-02
451
- pbiering include not covered patches from https://www.minidvblinux.de/forum/index.php?topic=9526.0
552

@@ -14,7 +61,7 @@ VDR Plugin 'mcli' Revision History
1461
- pbiering honor cam-disable earlier in cMcliDevice::SetChannelDevice
1562

1663
2021-01-24
17-
- pbiering add debug mask option (--debug-mask) (see mcli.h)
64+
- pbiering add debug mask option (--debugmask) (see mcli.h)
1865
- pbiering fix a bunch of debug messages and turn them to be controllable by --debug-mask
1966
- pbiering add cam-disable mode which avoid tuning to channel which requires CAM in case CAMs are generally not in use in the system (--cam-disable)
2067

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ plugin: i18n
7575
$(MAKE) XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" libvdr-$(PLUGIN).so
7676

7777
tools: lib
78-
$(MAKE) XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" -C mcast/client/ mcli
78+
$(MAKE) PLUGIN_NAME="$(PLUGIN)" XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" -C mcast/client/ mcli
7979
$(MAKE) XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" -C mcast/tool/ all
8080

8181
lib:
82-
$(MAKE) XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" libmcli.so
82+
$(MAKE) PLUGIN_NAME="$(PLUGIN)" XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" libmcli.so
8383

8484
libmcli.a libmcli.so:
85-
$(MAKE) XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" -C mcast/client/ libmcli
85+
$(MAKE) PLUGIN_NAME="$(PLUGIN)" XML_INC="$(XML_INC)" XML_LIB="$(XML_LIB)" -C mcast/client/ libmcli
8686

8787
### Implicit rules:
8888

README

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ END
113113
limit maximum number of tuners to <num>
114114
avoid that LCARS skin shows 8 tuners in a 3 tuner system
115115

116-
--debugmask <mask> (NEW since 0.9.5)
116+
--debugmask <mask> (NEW since 0.9.5, see logging.h)
117117
<mask> can be hexadecimal (0x..) or decimal
118118
conditionally enable debug messages
119119
PIDS 0x01
@@ -125,6 +125,13 @@ END
125125
FILTER 0x80
126126

127127

128+
--logskipmask <mask> (NEW since 0.9.6, see logging.h)
129+
<mask> can be hexadecimal (0x..) or decimal
130+
conditionally disable log messages
131+
recv_ts_func/Data PIDs 0x01 // skip log of issues with Data pids (0 or 16-18) like Mcli::recv_ts_func: Discontinuity on receiver 0x559f735c7e00 for pid 18: 5->7 at pos 0/7
132+
SetChannelDevice/Reject 0x02 // skip log of Mcli::SetChannelDevice: Reject tuning on DVB (interesting if cam-disable is active)
133+
134+
128135
== RPM Build Support included ==
129136

130137
# specify version:

cam_menu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class cCamInfo : public cOsdItem {
6262
m_slot = slot;
6363
}; // cCamInfo
6464
int CamMenuOpen (char *iface) {
65-
isyslog("Opening CAM Menu at NetCeiver %s Slot %d info %s\n", m_uuid, m_slot, m_info);
65+
isyslog("mcli::%s: Opening CAM Menu at NetCeiver %s Slot %d info %s", __FUNCTION__, m_uuid, m_slot, m_info);
6666
int mmi_session = 0;
6767
if(m_slot != -1 && strlen(m_info)) {
6868
mmi_session = mmi_open_menu_session (m_uuid, iface, 0, m_slot);

contrib/vdr-mcli.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# (avoid that LCARS skin shows 8 tuners in a 3 tuner system)
1717
#
1818
# --debugmask <mask>
19+
# --logskipmask <mask>
1920
#
2021
# in case of "Cannot get a packet socket"
2122
# Create/edit: /etc/systemd/system/vdr.service.d/override.conf

contrib/vdr-mcli.spec

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#global gitshortcommit #(c=#{gitcommit}; echo ${c:0:7})
99
#global gitdate 20210123
1010

11-
%define rel 2
11+
%define rel 4
1212

1313
Name: vdr-%{pname}
1414
Version: 0.9.5
@@ -31,11 +31,12 @@ Source0: https://github.com/%{fork_account}/vdr-plugin-mcli/archive/%{for
3131
%if 0%{?gitcommit:1}
3232
Source0: https://github.com/vdr-projects/vdr-plugin-mcli/archive/%{gitcommit}/%{name}-%{gitshortcommit}.tar.gz
3333
%else
34-
Source0: https://github.com/vdr-projects/vdr-plugin-mcli/archive/v%{version}/%{name}-%{version}.tar.gz
34+
Source0: https://github.com/vdr-projects/vdr-plugin-mcli/archive/v%{version}/vdr-plugin-%{pname}-%{version}.tar.gz
3535
%endif
3636
%endif
37-
Source1: %{name}.conf
38-
Source2: systemd-vdr.service.d-override.conf
37+
38+
%define file_plugin_config %{name}.conf
39+
%define file_systemd_override_config systemd-vdr.service.d-override.conf
3940

4041
BuildRequires: gcc-c++
4142
BuildRequires: vdr-devel >= 2.3.9
@@ -101,32 +102,11 @@ mkdir -p $RPM_BUILD_ROOT/usr/sbin/
101102
popd
102103

103104
# plugin cofig file
104-
if [ -e %{SOURCE1} ]; then
105-
# use from SOURCES / local directory
106-
echo "NOTICE: take default config file from SOURCES"
107-
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
108-
elif [ -e contrib/$(basename "%{SOURCE1}") ]; then
109-
# use from inside tgz (rpmbuild -tb build)
110-
echo "NOTICE: take default config file from package"
111-
install -Dpm 644 contrib/$(basename "%{SOURCE1}") $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
112-
else
113-
echo "ERROR: can't find default config file %{SOURCE1}"
114-
exit 1
115-
fi
105+
install -Dpm 644 contrib/%{file_plugin_config} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
116106

117107
# vdr/systemd/override.conf
118-
if [ -e %{SOURCE2} ]; then
119-
# use from SOURCES / local directory
120-
echo "NOTICE: take vdr/systemd/override.conf from SOURCES"
121-
install -Dpm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/vdr.service.d/override.conf
122-
elif [ -e contrib/$(basename "%{SOURCE2}") ]; then
123-
# use from inside tgz (rpmbuild -tb build)
124-
echo "NOTICE: take vdr/systemd/override.conf from package"
125-
install -Dpm 644 contrib/$(basename "%{SOURCE2}") $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/vdr.service.d/override.conf
126-
else
127-
echo "ERROR: can't find vdr/systemd/override.conf %{SOURCE2}"
128-
exit 1
129-
fi
108+
install -Dpm 644 contrib/%{file_systemd_override_config} $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/vdr.service.d/vdr-mcli.conf
109+
130110

131111
%find_lang %{name} --all-name --with-man
132112

@@ -151,6 +131,9 @@ systemctl daemon-reload
151131

152132

153133
%changelog
134+
* Mon Feb 08 2021 Peter Bieringer <[email protected]> - 0.9.5-4
135+
- Use only plugin/systemd config from contrib subdirectory
136+
154137
* Sun Jan 31 2021 Peter Bieringer <[email protected]> - 0.9.5-3
155138
- Change name to systemd/system/vdr.service.d/vdr-mcli.conf
156139
- Add on %post systemctl daemon-reload

0 commit comments

Comments
 (0)