Small simplification.
authorCarl Hetherington <cth@carlh.net>
Wed, 6 Mar 2013 01:04:23 +0000 (01:04 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 6 Mar 2013 01:04:23 +0000 (01:04 +0000)
src/lib/video_decoder.cc
src/lib/video_decoder.h

index 7fff93c454f3b36baea1cdb4ecfc99525281317b..8461b1635ba56e080dc8bf0ffa7deda9fc11d271 100644 (file)
@@ -52,21 +52,10 @@ VideoDecoder::emit_video (shared_ptr<Image> image, double t)
                sub = _timed_subtitle->subtitle ();
        }
 
-       signal_video (image, false, sub, t);
-       _last_source_time = t;
-}
-
-/** Emit our signal to say that some video data is ready.
- *  @param image Video frame.
- *  @param same true if `image' is the same as the last one we emitted.
- *  @param sub Subtitle for this frame, or 0.
- */
-void
-VideoDecoder::signal_video (shared_ptr<Image> image, bool same, shared_ptr<Subtitle> sub, double t)
-{
-       TIMING (N_("Decoder emits %1"), _video_frame);
        Video (image, same, sub, t);
        ++_video_frame;
+       
+       _last_source_time = t;
 }
 
 /** Set up the current subtitle.  This will be put onto frames that
index 7d43c9e82539aa0caf39b7dac2c6338921032517..1a02272a5ef245a591c1b1d5723834d4b7b2e25e 100644 (file)
@@ -74,8 +74,6 @@ protected:
        std::vector<boost::shared_ptr<SubtitleStream> > _subtitle_streams;
 
 private:
-       void signal_video (boost::shared_ptr<Image>, bool, boost::shared_ptr<Subtitle>, double);
-
        int _video_frame;
        double _last_source_time;