mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
tests: only override when != NULL
Only override the methods in the unit tests when != NULL otherwise we might override the default implementation.
This commit is contained in:
parent
4760e1902a
commit
62f614d0cb
1 changed files with 10 additions and 5 deletions
|
@ -91,11 +91,16 @@ gst_test_trans_class_init (GstTestTransClass * klass)
|
|||
gst_static_pad_template_get (src_template));
|
||||
|
||||
trans_class->passthrough_on_same_caps = klass_passthrough_on_same_caps;
|
||||
trans_class->transform_ip = klass_transform_ip;
|
||||
trans_class->transform = klass_transform;
|
||||
trans_class->transform_caps = klass_transform_caps;
|
||||
trans_class->transform_size = klass_transform_size;
|
||||
trans_class->set_caps = klass_set_caps;
|
||||
if (klass_transform_ip != NULL)
|
||||
trans_class->transform_ip = klass_transform_ip;
|
||||
if (klass_transform != NULL)
|
||||
trans_class->transform = klass_transform;
|
||||
if (klass_transform_caps != NULL)
|
||||
trans_class->transform_caps = klass_transform_caps;
|
||||
if (klass_transform_size != NULL)
|
||||
trans_class->transform_size = klass_transform_size;
|
||||
if (klass_set_caps != NULL)
|
||||
trans_class->set_caps = klass_set_caps;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue