mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
tsdemux: Avoid throwing FLOW_ERROR on last PCR processing error
In the case of scanning last pcr, errors are not critical, so we keep the stream flowing.
This commit is contained in:
parent
cda0d3aed8
commit
1182dd0c1b
1 changed files with 7 additions and 3 deletions
|
@ -1697,7 +1697,7 @@ process_pcr (MpegTSBase * base, guint64 initoff, TSPcrOffset * pcroffset,
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
MpegTSBaseProgram *program;
|
MpegTSBaseProgram *program;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
guint nbpcr, i = 0;
|
guint i, nbpcr = 0;
|
||||||
guint32 pcrmask, pcrpattern;
|
guint32 pcrmask, pcrpattern;
|
||||||
guint64 pcrs[50];
|
guint64 pcrs[50];
|
||||||
guint64 pcroffs[50];
|
guint64 pcroffs[50];
|
||||||
|
@ -1708,8 +1708,12 @@ process_pcr (MpegTSBase * base, guint64 initoff, TSPcrOffset * pcroffset,
|
||||||
|
|
||||||
/* Get the program */
|
/* Get the program */
|
||||||
program = demux->program;
|
program = demux->program;
|
||||||
if (G_UNLIKELY (program == NULL))
|
if (G_UNLIKELY (program == NULL)) {
|
||||||
return GST_FLOW_ERROR;
|
GST_DEBUG ("No program set, can not keep processing pcr");
|
||||||
|
|
||||||
|
ret = GST_FLOW_ERROR;
|
||||||
|
goto beach;
|
||||||
|
}
|
||||||
|
|
||||||
/* First find the first X PCR */
|
/* First find the first X PCR */
|
||||||
nbpcr = 0;
|
nbpcr = 0;
|
||||||
|
|
Loading…
Reference in a new issue