mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
Revert "fmp4: Return a running time in get_next_time()"
This reverts commit 04bb7b4db0
.
As Sebastian points out, the chunk PTS is already in running time, so
this was wrong from the start.
Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/363
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1219>
This commit is contained in:
parent
04e35e86d6
commit
b05c21680d
1 changed files with 1 additions and 16 deletions
|
@ -2927,22 +2927,7 @@ impl ElementImpl for FMP4Mux {
|
||||||
impl AggregatorImpl for FMP4Mux {
|
impl AggregatorImpl for FMP4Mux {
|
||||||
fn next_time(&self) -> Option<gst::ClockTime> {
|
fn next_time(&self) -> Option<gst::ClockTime> {
|
||||||
let state = self.state.lock().unwrap();
|
let state = self.state.lock().unwrap();
|
||||||
let agg = self.obj();
|
state.chunk_start_pts.opt_add(state.timeout_delay)
|
||||||
let segment = agg
|
|
||||||
.src_pad()
|
|
||||||
.segment()
|
|
||||||
.downcast::<gst::ClockTime>()
|
|
||||||
.expect("TIME segment");
|
|
||||||
|
|
||||||
state
|
|
||||||
.chunk_start_pts
|
|
||||||
.opt_add(state.timeout_delay)
|
|
||||||
.and_then(|mut t| {
|
|
||||||
if !agg.class().as_ref().variant.is_single_stream() {
|
|
||||||
t += SEGMENT_OFFSET;
|
|
||||||
}
|
|
||||||
segment.to_running_time(t)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn sink_query(
|
fn sink_query(
|
||||||
|
|
Loading…
Reference in a new issue