Commit 4376ba4e authored by George Kiagiadakis's avatar George Kiagiadakis

tests: enhance the gstcaps test_features to also test gst_caps_set_features()

Compliments my previous patch for gst_caps_set_features, which would
previously assert and leak the old GstCapsFeatures if the caps already
had a GstCapsFeatures and you were trying to replace it with a new one.
parent 780c83d5
......@@ -1129,6 +1129,13 @@ GST_START_TEST (test_features)
gst_caps_unref (c2);
gst_caps_unref (c1);
c1 = gst_caps_from_string ("video/x-raw");
f1 = gst_caps_get_features (c1, 0);
f2 = gst_caps_features_new ("memory:dmabuf", NULL);
gst_caps_set_features (c1, 0, f2);
gst_caps_unref (c1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment