summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-18 19:13:30 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-18 19:13:30 +0100
commit69efa47dbd1684c897f780c80fd68bdc05c817f4 (patch)
treec2395218844d9d5d827f4a6743e5edf51e9b58fe /src/lib/ffmpeg_decoder.cc
parent221555777b72932c6d9eccdbc37e5b8c1be9d62e (diff)
Rename next -> position in decoders.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index 7ebb31084..36078a463 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -452,22 +452,22 @@ FFmpegDecoder::seek (Time t)
void
FFmpegDecoder::seek_back ()
{
- if (next() < (2.5 * TIME_HZ / video_frame_rate())) {
+ if (position() < (2.5 * TIME_HZ / video_frame_rate())) {
return;
}
- do_seek (next() - 2.5 * TIME_HZ / video_frame_rate(), true, true);
+ do_seek (position() - 2.5 * TIME_HZ / video_frame_rate(), true, true);
VideoDecoder::seek_back ();
}
void
FFmpegDecoder::seek_forward ()
{
- if (next() >= (_ffmpeg_content->length() - 0.5 * TIME_HZ / video_frame_rate())) {
+ if (position() >= (_ffmpeg_content->length() - 0.5 * TIME_HZ / video_frame_rate())) {
return;
}
- do_seek (next() - 0.5 * TIME_HZ / video_frame_rate(), true, true);
+ do_seek (position() - 0.5 * TIME_HZ / video_frame_rate(), true, true);
VideoDecoder::seek_forward ();
}
@@ -608,7 +608,7 @@ FFmpegDecoder::decode_video_packet ()
}
Time
-FFmpegDecoder::next () const
+FFmpegDecoder::position () const
{
if (_decode_video && _decode_audio && _audio_codec_context) {
return min (_next_video, _next_audio);