templatematch: add a framerate to test caps

The pad template requires a framerate, so use it to prevent
caps negotiation failures.

Fixes the unit test
This commit is contained in:
Thiago Santos 2015-11-06 17:24:52 -03:00
parent fcf1845e39
commit 8def19decb

View file

@ -92,7 +92,8 @@ GST_START_TEST (test_match_blue_square)
GstElement *element;
GstPad *sinkpad, *srcpad;
GstCaps *caps =
gst_caps_from_string (CAPS_TMPL ", width=(int)16, height=(int)16");
gst_caps_from_string (CAPS_TMPL
", width=(int)16, height=(int)16, framerate=1/1");
GstBus *bus;
GstMessage *msg;
const GstStructure *structure;