projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Be more careful about allowing possibly-trouble-causing characters in DCP filenames.
[dcpomatic.git]
/
src
/
lib
/
audio_decoder_stream.cc
diff --git
a/src/lib/audio_decoder_stream.cc
b/src/lib/audio_decoder_stream.cc
index af46593ab60b20c8948abd977e5d19f05fa98809..a82ebc4cf4b04e8b4d48dec0c20875994078d06c 100644
(file)
--- a/
src/lib/audio_decoder_stream.cc
+++ b/
src/lib/audio_decoder_stream.cc
@@
-272,3
+272,13
@@
AudioDecoderStream::set_fast ()
_resampler->set_fast ();
}
}
+
+optional<ContentTime>
+AudioDecoderStream::position () const
+{
+ if (!_position) {
+ return optional<ContentTime> ();
+ }
+
+ return ContentTime::from_frames (_position.get(), _content->resampled_frame_rate());
+}