mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 12:02:27 +00:00
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.
This commit is contained in:
parent
780c83d5c4
commit
4376ba4e3c
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
|
Loading…
Reference in a new issue