summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-13 11:48:52 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-13 11:48:52 +0100
commit1b3e9b80e4940ccf218062fd5dc907c6079ba249 (patch)
treeb9b597e4c4f41b9c05c36d8f739bc5792ae57528 /src/lib
parent842664b841683949bc7c6a84b4adde812d6e150e (diff)
Another attempt to fix back / same-frame seeks.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg_content.cc2
-rw-r--r--src/lib/video_decoder.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc
index f4e1b9e72..bacc3183c 100644
--- a/src/lib/ffmpeg_content.cc
+++ b/src/lib/ffmpeg_content.cc
@@ -300,7 +300,7 @@ FFmpegAudioStream::FFmpegAudioStream (shared_ptr<const cxml::Node> node)
frame_rate = node->number_child<int> ("FrameRate");
channels = node->number_child<int64_t> ("Channels");
mapping = AudioMapping (node->node_child ("Mapping"));
- first_audio = node->optional_number_child<Time> ("FirstAudio");
+ first_audio = node->optional_number_child<double> ("FirstAudio");
}
void
diff --git a/src/lib/video_decoder.h b/src/lib/video_decoder.h
index 0b3350472..0560cbb6f 100644
--- a/src/lib/video_decoder.h
+++ b/src/lib/video_decoder.h
@@ -30,7 +30,10 @@ class VideoDecoder : public virtual Decoder
public:
VideoDecoder (boost::shared_ptr<const Film>);
- virtual void seek (VideoContent::Frame, bool) = 0;
+ /** Seek so that the next pass() will yield (approximately) the requested frame.
+ * Pass accurate = true to try harder to get close to the request.
+ */
+ virtual void seek (VideoContent::Frame frame, bool accurate) = 0;
/** Emitted when a video frame is ready.
* First parameter is the video image.