summaryrefslogtreecommitdiff
path: root/src/lib/ab_transcoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-15 22:26:16 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-15 22:26:16 +0000
commit4fbd1901fdabc829cfa7e7d4d0c1272bba87033c (patch)
tree416701b4a2923cdc16983311239bd311282e8438 /src/lib/ab_transcoder.cc
parentf5c40275a2dc444c295a547dfedcd8f9eee2bcb2 (diff)
Untested external audio support; AB transcodes still broken.
Diffstat (limited to 'src/lib/ab_transcoder.cc')
-rw-r--r--src/lib/ab_transcoder.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/lib/ab_transcoder.cc b/src/lib/ab_transcoder.cc
index 868ce9079..9999eda90 100644
--- a/src/lib/ab_transcoder.cc
+++ b/src/lib/ab_transcoder.cc
@@ -21,7 +21,8 @@
#include <boost/shared_ptr.hpp>
#include "ab_transcoder.h"
#include "film.h"
-#include "decoder.h"
+#include "video_decoder.h"
+#include "audio_decoder.h"
#include "encoder.h"
#include "job.h"
#include "options.h"
@@ -54,9 +55,11 @@ ABTranscoder::ABTranscoder (
_da = decoder_factory (_film_a, o, j);
_db = decoder_factory (_film_b, o, j);
- _da->Video.connect (bind (&ABTranscoder::process_video, this, _1, _2, 0));
- _db->Video.connect (bind (&ABTranscoder::process_video, this, _1, _2, 1));
- _da->Audio.connect (bind (&Encoder::process_audio, e, _1));
+ /* XXX */
+
+// _da->Video.connect (bind (&ABTranscoder::process_video, this, _1, _2, 0));
+// _db->Video.connect (bind (&ABTranscoder::process_video, this, _1, _2, 1));
+// _da->Audio.connect (bind (&Encoder::process_audio, e, _1));
}
ABTranscoder::~ABTranscoder ()
@@ -100,10 +103,11 @@ ABTranscoder::go ()
_encoder->process_begin ();
while (1) {
- bool const a = _da->pass ();
- bool const b = _db->pass ();
+ bool const va = _da.first->pass ();
+ bool const vb = _db.first->pass ();
+ bool const a = _da.first->pass ();
- if (a && b) {
+ if (va && vb && a) {
break;
}
}