From 559a4692339f427931846c8642f22031e9e2efec Mon Sep 17 00:00:00 2001 From: nox Date: Sun, 27 Mar 2011 16:20:53 +0000 Subject: Add optional workaround patch and knob for North American DVB-S AC3 audio. (default off for now since it doesn't seem to be a `proper' fix.) Submitted by: VDR User on -multimedia --- multimedia/vdr/Makefile | 8 ++++++-- multimedia/vdr/files/vdr-1.7.17-fix_na_dvbs_ac3.diff | 10 ++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 multimedia/vdr/files/vdr-1.7.17-fix_na_dvbs_ac3.diff (limited to 'multimedia') diff --git a/multimedia/vdr/Makefile b/multimedia/vdr/Makefile index c317a5a3b94c..bf99f97d6d78 100644 --- a/multimedia/vdr/Makefile +++ b/multimedia/vdr/Makefile @@ -19,7 +19,8 @@ LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig -OPTIONS= IPTVPATCH "Stops EIT scans on IPTV channels" On +OPTIONS= IPTVPATCH "Stops EIT scans on IPTV channels" On \ + AC3PATCH "North America DVB-S AC3 audio workaround" Off DIST_SUBDIR= vdr USE_BZIP2= yes @@ -53,9 +54,12 @@ PLIST_SUB+= VDR_GROUP=${VDR_GROUP} .include .if defined(WITH_IPTVPATCH) -EXTRA_PATCHES= ${FILESDIR}/vdr-1.7.15-disable_ca_updates.patch \ +EXTRA_PATCHES+= ${FILESDIR}/vdr-1.7.15-disable_ca_updates.patch \ ${FILESDIR}/vdr-1.7.15-disable_eitscan.patch .endif +.if defined(WITH_AC3PATCH) +EXTRA_PATCHES+= ${FILESDIR}/vdr-1.7.17-fix_na_dvbs_ac3.diff +.endif .if !defined(WITHOUT_NLS) PLIST_SUB+= NLS="" diff --git a/multimedia/vdr/files/vdr-1.7.17-fix_na_dvbs_ac3.diff b/multimedia/vdr/files/vdr-1.7.17-fix_na_dvbs_ac3.diff new file mode 100644 index 000000000000..8ab3a21d5c7e --- /dev/null +++ b/multimedia/vdr/files/vdr-1.7.17-fix_na_dvbs_ac3.diff @@ -0,0 +1,10 @@ +--- pat.c.orig 2011-03-13 23:15:42.000000000 -0700 ++++ pat.c 2011-03-14 00:14:40.000000000 -0700 +@@ -486,6 +486,7 @@ void cPatFilter::Process(u_short Pid, u_ + SI::ISO639LanguageDescriptor *ld = (SI::ISO639LanguageDescriptor *)d; + strn0cpy(lang, I18nNormalizeLanguageCode(ld->languageCode), MAXLANGCODE1); + } ++ IsAc3 = true; + break; + default: ; + } -- cgit