Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d9c0b0b authored by Hamad Kadmany's avatar Hamad Kadmany Committed by Stephen Boyd
Browse files

media: dvb: Add initialization of PES error indicators



Following SDMX notification on PES data, the errors indicators
for PES event were not cleared if SDMX did not report any error.

CRs-Fixed: 493108
Change-Id: I89b43ce193b96462b804848c5e484d25343d5f40
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 87854c20
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -4055,10 +4055,12 @@ static void mpq_sdmx_pes_filter_results(struct mpq_demux *mpq_demux,
		pes_event.pes_end.start_gap = 0;
		pes_event.data_length = 0;

		/* Parse error indicators - TODO: these should be per filter */
		/* Parse error indicators */
		if (sts->error_indicators & SDMX_FILTER_ERR_INVALID_PES_LEN)
			pes_event.pes_end.pes_length_mismatch = 1;
		if (sts->error_indicators & SDMX_FILTER_ERR_CONT_CNT_INVALID)
		else
			pes_event.pes_end.pes_length_mismatch = 0;

		pes_event.pes_end.disc_indicator_set = 0;

		pes_event.pes_end.stc = 0;