mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
tests: update videorate test for videotestsrc changes
Add color-matrix to the caps we are comparing. Add logging og the caps in the test.
This commit is contained in:
parent
84ed474e6a
commit
412e5f5871
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,8 @@ static GstPad *mysrcpad, *mysinkpad;
|
|||
"width = (int) 240, " \
|
||||
"height = (int) 120, " \
|
||||
"framerate = (fraction) 999/7 , " \
|
||||
"format = (fourcc) I420"
|
||||
"format = (fourcc) I420, " \
|
||||
"color-matrix=(string)sdtv"
|
||||
|
||||
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
|
@ -745,6 +746,9 @@ GST_START_TEST (test_selected_caps)
|
|||
g_object_get (videorate_pad, "caps", &caps, NULL);
|
||||
expected_caps = gst_caps_from_string (VIDEO_CAPS_UNUSUAL_FRAMERATE);
|
||||
|
||||
GST_DEBUG ("negotiated caps: %" GST_PTR_FORMAT, caps);
|
||||
GST_DEBUG ("expected caps: %" GST_PTR_FORMAT, expected_caps);
|
||||
|
||||
fail_unless (gst_caps_is_equal (expected_caps, caps));
|
||||
|
||||
/* cleanup */
|
||||
|
|
Loading…
Reference in a new issue