TS discontinuity check

[email protected] (Roberto Corno)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Roberto Corno <[email protected]> | Thu Aug  9 14:52:27 2012 +0200| [d4b4906755f2ce67269e34007162ca6ae415217b] | committer: Jean-Paul Saman

TS discontinuity check

Signed-off-by: Jean-Paul Saman <[email protected]>

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=d4b4906755f2ce67269e34007162ca6ae415217b
---

 src/tables/rst.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/tables/rst.c b/src/tables/rst.c
index d0e7759..e5e0860 100644
--- a/src/tables/rst.c
+++ b/src/tables/rst.c
@@ -361,6 +361,13 @@ void dvbpsi_rst_sections_gather(dvbpsi_t *p_dvbpsi,
     dvbpsi_rst_decoder_t* p_rst_decoder
                           = (dvbpsi_rst_decoder_t*)p_dvbpsi->p_decoder;
 
+    /* TS discontinuity check */
+    if (p_rst_decoder->b_discontinuity)
+    {
+    	dvbpsi_rst_reset(p_rst_decoder, true);
+        p_rst_decoder->b_discontinuity = false;
+    }
+
     /* Add section to RST */
     if (!dvbpsi_rst_section_add(p_dvbpsi, p_rst_decoder, p_section))
     {

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.