Skip to content
Permalink
Browse files
8268152: gstmpegaudioparse does not provides timestamps for HLS MP3 s…
…treams

Backport-of: ee032387badadb41ed36de745aea3c0a074b79bd
  • Loading branch information
kevinrushforth committed Jun 5, 2021
1 parent 8805e43 commit 032368a7bd9fd53b4448b1c26e78c95eca3dae49
Showing 2 changed files with 10 additions and 0 deletions.
@@ -1883,8 +1883,14 @@ gst_audio_base_sink_render (GstBaseSink * bsink, GstBuffer * buf)
/* Last ditch attempt to ensure that we only play silence if
* we are in trickmode no-audio mode (or if a buffer is marked as a GAP)
* by dropping the buffer contents and rendering as a gap event instead */
#ifndef GSTREAMER_LITE
if (G_UNLIKELY ((bsink->segment.flags & GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO)
|| (buf && GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_GAP)))) {
#else // GSTREAMER_LITE
if (G_UNLIKELY ((bsink->segment.flags & GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO)
|| (buf && GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_GAP)))
&& GST_BUFFER_TIMESTAMP_IS_VALID(buf)) {
#endif // GSTREAMER_LITE
GstClockTime duration;
GstEvent *event;
GstBaseSinkClass *bclass;
@@ -1336,7 +1336,11 @@ gst_base_parse_sink_event_default (GstBaseParse * parse, GstEvent * event)
/* not considered BYTE seekable if it is talking to us in TIME,
* whatever else it might claim */
parse->priv->upstream_seekable = FALSE;
#ifndef GSTREAMER_LITE
next_dts = GST_CLOCK_TIME_NONE;
#else // GSTREAMER_LITE
next_dts = in_segment->start;
#endif // GSTREAMER_LITE
gst_event_copy_segment (event, &out_segment);
}

1 comment on commit 032368a

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 032368a Jun 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.