[farsight2/master] tests; Add test for fscodec ptime/maxptime handling
Olivier Crête
olivier.crete at collabora.co.uk
Mon Dec 28 17:18:59 PST 2009
---
tests/check/base/fscodec.c | 5 +++++
tests/check/base/test1.conf | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tests/check/base/fscodec.c b/tests/check/base/fscodec.c
index a31c19d..44be9b4 100644
--- a/tests/check/base/fscodec.c
+++ b/tests/check/base/fscodec.c
@@ -95,6 +95,9 @@ init_codec_with_three_params (void)
fs_codec_add_optional_parameter (codec, "aa2", "bb2");
fs_codec_add_optional_parameter (codec, "aa3", "bb3");
+ codec->ABI.ABI.ptime = 12;
+ codec->ABI.ABI.maxptime = 12;
+
return codec;
}
@@ -235,6 +238,8 @@ GST_START_TEST (test_fscodec_keyfile)
codec = fs_codec_new (123, "TEST2", FS_MEDIA_TYPE_VIDEO, 8002);
codec->channels = 6;
+ codec->ABI.ABI.maxptime = 12;
+ codec->ABI.ABI.ptime = 13;
fs_codec_add_optional_parameter (codec, "test5", "test6");
comparison = g_list_append (comparison, codec);
diff --git a/tests/check/base/test1.conf b/tests/check/base/test1.conf
index 43b2421..e112b6a 100644
--- a/tests/check/base/test1.conf
+++ b/tests/check/base/test1.conf
@@ -9,6 +9,8 @@ id=123
clock-rate=8002
channels=6
test5=test6
+maxptime=12
+ptime=13
[audio/TEST3]
@@ -32,3 +34,5 @@ clock-rate=dsa
[daasd/asdsa]
asdasd=11
channels=1das
+maxptime=532
+ptime=42
--
1.5.6.5
More information about the farsight-commits
mailing list