diff options
author | Diane Trout <diane@ghic.org> | 2015-04-06 21:54:41 -0700 |
---|---|---|
committer | Diane Trout <diane@ghic.org> | 2015-04-07 21:03:09 -0700 |
commit | 53220ba158b74cf5d5bf27e03f7892a6629a8d50 (patch) | |
tree | 0581d6044520d7ce2be399005954a9f3c9cf651f | |
parent | 5037310103254264c0cf8c8be4a24fca30db90a2 (diff) |
tests/auto/taglisttest.cpp: it appears tag lists remove duplicates, so create a new buffer to make sure the image count is incremented
-rw-r--r-- | tests/auto/taglisttest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/taglisttest.cpp b/tests/auto/taglisttest.cpp index 31dd1f2..1f649b8 100644 --- a/tests/auto/taglisttest.cpp +++ b/tests/auto/taglisttest.cpp @@ -396,8 +396,11 @@ void TagListTest::sampleTest() QCOMPARE(structure4->name(), QString("files")); QCOMPARE(structure4->value("attachment").get<QString>(), QString("avalue")); + QGst::BufferPtr buffer2 = QGst::Buffer::create(222); + QGst::SamplePtr sample5 = QGst::Sample::create(buffer2, caps, QGst::Segment(), QGst::Structure()); + //now set multiple samples and verify the count - tl.setImage(sample3, QGst::TagMergeAppend); + tl.setImage(sample5, QGst::TagMergeAppend); QCOMPARE(tl.imageCount(), 2); tl.setAttachment(sample2, QGst::TagMergePrepend); |