projects
/
nihav-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ab5378
)
use raw stream duration
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 22 Nov 2021 17:39:52 +0000
(18:39 +0100)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 22 Nov 2021 17:39:52 +0000
(18:39 +0100)
sndplay/src/demux.rs
patch
|
blob
|
blame
|
history
diff --git
a/sndplay/src/demux.rs
b/sndplay/src/demux.rs
index f2e8870961026a3eaaacbf4b7921e68c775e6783..ac483da389eea1c00d049e1124c82ce4651fb2f8 100644
(file)
--- a/
sndplay/src/demux.rs
+++ b/
sndplay/src/demux.rs
@@
-159,6
+159,9
@@
impl<'a> DemuxerObject<'a> {
match *self {
DemuxerObject::Normal(ref dmx) => dmx.get_duration(),
DemuxerObject::Raw(ref dmx, _, _) => dmx.get_duration(),
match *self {
DemuxerObject::Normal(ref dmx) => dmx.get_duration(),
DemuxerObject::Raw(ref dmx, _, _) => dmx.get_duration(),
+ DemuxerObject::RawStream(ref ctx) => {
+ NATimeInfo::ts_to_time(ctx.stream.duration, 1000, ctx.stream.tb_num, ctx.stream.tb_den)
+ },
_ => 0,
}
}
_ => 0,
}
}