Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8268152: gstmpegaudioparse does not provides timestamps for HLS MP3 streams #526

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down