tests: port tests to new raw caps

This commit is contained in:
Tim-Philipp Müller 2012-02-10 19:42:16 +00:00
parent 1a48407337
commit 404fcc8bed

View file

@ -21,6 +21,8 @@
#include <gst/check/gstcheck.h> #include <gst/check/gstcheck.h>
#include <string.h> #include <string.h>
#include <gst/audio/audio.h>
#define KEY_FILE_START {\ #define KEY_FILE_START {\
if (cmp) g_key_file_free (cmp);\ if (cmp) g_key_file_free (cmp);\
cmp = g_key_file_new ();\ cmp = g_key_file_new ();\
@ -101,7 +103,7 @@ GST_START_TEST (test_keyfile_save)
KEY_FILE_START; KEY_FILE_START;
KEY ("General", "version", "1"); KEY ("General", "version", "1");
KEY ("Track0", "type", "GES_TRACK_TYPE_AUDIO"); KEY ("Track0", "type", "GES_TRACK_TYPE_AUDIO");
KEY ("Track0", "caps", "audio/x-raw-int; audio/x-raw-float"); KEY ("Track0", "caps", "audio/x-raw");
KEY ("Layer0", "priority", "0"); KEY ("Layer0", "priority", "0");
KEY ("Layer0", "type", "simple"); KEY ("Layer0", "type", "simple");
COMPARE; COMPARE;
@ -512,7 +514,7 @@ fail:
static const gchar *data = "\n[General]\n" static const gchar *data = "\n[General]\n"
"[Track0]\n" "[Track0]\n"
"type=GES_TRACK_TYPE_AUDIO\n" "type=GES_TRACK_TYPE_AUDIO\n"
"caps=audio/x-raw-int; audio/x-raw-float\n" "caps=audio/x-raw\n"
"\n" "\n"
"[Layer0]\n" "[Layer0]\n"
"priority=0\n" "priority=0\n"
@ -587,7 +589,7 @@ GST_START_TEST (test_keyfile_load)
TIMELINE_BEGIN (expected) { TIMELINE_BEGIN (expected) {
TRACK (GES_TRACK_TYPE_AUDIO, "audio/x-raw-float; audio/x-raw-int"); TRACK (GES_TRACK_TYPE_AUDIO, "audio/x-raw");
SIMPLE_LAYER_BEGIN (0) { SIMPLE_LAYER_BEGIN (0) {
@ -639,8 +641,9 @@ GST_START_TEST (test_keyfile_identity)
TIMELINE_BEGIN (orig) { TIMELINE_BEGIN (orig) {
TRACK (GES_TRACK_TYPE_AUDIO, "audio/x-raw-int,width=32,rate=8000"); TRACK (GES_TRACK_TYPE_AUDIO, "audio/x-raw,"
TRACK (GES_TRACK_TYPE_VIDEO, "video/x-raw-rgb"); "format=(string)" GST_AUDIO_NE (S32) ",rate=8000");
TRACK (GES_TRACK_TYPE_VIDEO, "video/x-raw,format=(string)RGB24");
LAYER_BEGIN (5) { LAYER_BEGIN (5) {