summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-04 00:13:27 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-04 00:13:27 +0100
commit190c074cc1508c0aa429452ea920f8f94ef0d0f2 (patch)
tree88cfc25fdfc67837aaf84dc3980cce9ee98094bb /src/lib/ffmpeg_decoder.h
parent675e849d19812f5ed2d63b3bc0e34f142e6abb89 (diff)
More various bits.
Diffstat (limited to 'src/lib/ffmpeg_decoder.h')
-rw-r--r--src/lib/ffmpeg_decoder.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h
index 71ecf7906..5023ac56c 100644
--- a/src/lib/ffmpeg_decoder.h
+++ b/src/lib/ffmpeg_decoder.h
@@ -82,6 +82,10 @@ public:
private:
+ /* No copy construction */
+ FFmpegDecoder (FFmpegDecoder const &);
+ FFmpegDecoder& operator= (FFmpegDecoder const &);
+
bool do_seek (double p, bool);
PixelFormat pixel_format () const;
AVSampleFormat audio_sample_format () const;
@@ -134,4 +138,10 @@ private:
bool _decode_audio;
bool _decode_subtitles;
bool _video_sync;
+
+ /* It would appear (though not completely verified) that one must have
+ a mutex around calls to avcodec_open* and avcodec_close... and here
+ it is.
+ */
+ static boost::mutex _mutex;
};