Fix test.
authorCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 11:11:24 +0000 (11:11 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 11:11:24 +0000 (11:11 +0000)
test/stream_test.cc

index 6d8938ca4b55ab514933c4fa7ea7facffc74c35a..6abcf6e22aedf95a0dec879a05746accf4a5d443 100644 (file)
@@ -35,6 +35,9 @@ BOOST_AUTO_TEST_CASE (stream_test)
        root->add_child("Id")->add_child_text ("4");
        root->add_child("FrameRate")->add_child_text ("44100");
        root->add_child("Channels")->add_child_text ("2");
+
+       /* This is the state file version 5 description of the mapping */
+       
        xmlpp::Element* mapping = root->add_child("Mapping");
        mapping->add_child("ContentChannels")->add_child_text ("2");
        {
@@ -62,7 +65,7 @@ BOOST_AUTO_TEST_CASE (stream_test)
                map->add_child("DCP")->add_child_text ("2");
        }
                
-       FFmpegAudioStream a (shared_ptr<cxml::Node> (new cxml::Node (root)), Film::state_version);
+       FFmpegAudioStream a (shared_ptr<cxml::Node> (new cxml::Node (root)), 5);
 
        BOOST_CHECK_EQUAL (a.id, 4);
        BOOST_CHECK_EQUAL (a.frame_rate, 44100);