mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +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;
|
||||
MpegTSBaseProgram *program;
|
||||
GstBuffer *buf;
|
||||
guint nbpcr, i = 0;
|
||||
guint i, nbpcr = 0;
|
||||
guint32 pcrmask, pcrpattern;
|
||||
guint64 pcrs[50];
|
||||
guint64 pcroffs[50];
|
||||
|
@ -1708,8 +1708,12 @@ process_pcr (MpegTSBase * base, guint64 initoff, TSPcrOffset * pcroffset,
|
|||
|
||||
/* Get the program */
|
||||
program = demux->program;
|
||||
if (G_UNLIKELY (program == NULL))
|
||||
return GST_FLOW_ERROR;
|
||||
if (G_UNLIKELY (program == NULL)) {
|
||||
GST_DEBUG ("No program set, can not keep processing pcr");
|
||||
|
||||
ret = GST_FLOW_ERROR;
|
||||
goto beach;
|
||||
}
|
||||
|
||||
/* First find the first X PCR */
|
||||
nbpcr = 0;
|
||||
|
|
Loading…
Reference in a new issue