diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-14 01:36:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | 6cac49dc50dae6b173135df101d532f20031ca70 (patch) | |
| tree | fe5a4fb85f89795d9501426dd6d06bada3859b6d /src/lib | |
| parent | c46bfb445ba467b3b262cab4e0aa808d6b4cb6a8 (diff) | |
Setup Butler::_prepare_only_proxy on construction.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/butler.cc | 4 | ||||
| -rw-r--r-- | src/lib/butler.h | 6 | ||||
| -rw-r--r-- | src/lib/ffmpeg_encoder.cc | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc index cbd5ba15d..ca0887a4c 100644 --- a/src/lib/butler.cc +++ b/src/lib/butler.cc @@ -68,7 +68,8 @@ Butler::Butler ( function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, - bool fast + bool fast, + bool prepare_only_proxy ) : _film (film) , _player (player) @@ -85,6 +86,7 @@ Butler::Butler ( , _video_range (video_range) , _aligned (aligned) , _fast (fast) + , _prepare_only_proxy (prepare_only_proxy) { _player_video_connection = _player->Video.connect (bind (&Butler::video, this, _1, _2)); _player_audio_connection = _player->Audio.connect (bind (&Butler::audio, this, _1, _2, _3)); diff --git a/src/lib/butler.h b/src/lib/butler.h index d31442f6c..320e56bf9 100644 --- a/src/lib/butler.h +++ b/src/lib/butler.h @@ -46,7 +46,8 @@ public: std::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool aligned, - bool fast + bool fast, + bool prepare_only_proxy ); ~Butler (); @@ -80,9 +81,6 @@ public: boost::optional<TextRingBuffers::Data> get_closed_caption (); void disable_audio (); - void set_prepare_only_proxy (bool p) { - _prepare_only_proxy = p; - } std::pair<size_t, std::string> memory_used () const; diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc index 61ca1ae00..77f27d519 100644 --- a/src/lib/ffmpeg_encoder.cc +++ b/src/lib/ffmpeg_encoder.cc @@ -108,7 +108,7 @@ FFmpegEncoder::FFmpegEncoder ( } _butler = std::make_shared<Butler>( - _film, _player, map, _output_audio_channels, bind(&PlayerVideo::force, _1, FFmpegFileEncoder::pixel_format(format)), VideoRange::VIDEO, true, false + _film, _player, map, _output_audio_channels, bind(&PlayerVideo::force, _1, FFmpegFileEncoder::pixel_format(format)), VideoRange::VIDEO, true, false, false ); } |
