mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-29 20:35:40 +00:00
tsdemux: Issue GST_ELEMENT_WARNING for continuity errors
The application might want to make use of these. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1096>
This commit is contained in:
parent
9bd8c45db0
commit
300e784a20
1 changed files with 7 additions and 2 deletions
|
@ -2687,8 +2687,13 @@ gst_ts_demux_queue_data (GstTSDemux * demux, TSDemuxStream * stream,
|
|||
}
|
||||
stream->state = PENDING_PACKET_HEADER;
|
||||
} else {
|
||||
GST_WARNING ("CONTINUITY: Mismatch packet %d, stream %d",
|
||||
cc, stream->continuity_counter);
|
||||
GST_ELEMENT_WARNING_WITH_DETAILS (demux, STREAM, DEMUX,
|
||||
("CONTINUITY: Mismatch packet %d, stream %d (pid 0x%04x)", cc,
|
||||
stream->continuity_counter, stream->stream.pid), (NULL),
|
||||
("warning-type", G_TYPE_STRING, "continuity-mismatch",
|
||||
"packet", G_TYPE_INT, cc,
|
||||
"stream", G_TYPE_INT, stream->continuity_counter,
|
||||
"pid", G_TYPE_UINT, stream->stream.pid, NULL));
|
||||
stream->state = PENDING_PACKET_DISCONT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue