GST_CAT_DEBUG (gst_parent_buffer_meta_debug,
"copy buffer reference metadata");
+ } else {
+ /* return FALSE, if transform type is not supported */
+ return FALSE;
}
return TRUE;
}
net_address_meta_transform (GstBuffer * transbuf, GstMeta * meta,
GstBuffer * buffer, GQuark type, gpointer data)
{
- GstNetAddressMeta *nmeta = (GstNetAddressMeta *) meta;
+ GstNetAddressMeta *smeta, *dmeta;
+ smeta = (GstNetAddressMeta *) meta;
/* we always copy no matter what transform */
- gst_buffer_add_net_address_meta (transbuf, nmeta->addr);
+ dmeta = gst_buffer_add_net_address_meta (transbuf, smeta->addr);
+ if (!dmeta)
+ return FALSE;
return TRUE;
}
net_control_message_meta_transform (GstBuffer * transbuf, GstMeta * meta,
GstBuffer * buffer, GQuark type, gpointer data)
{
- GstNetControlMessageMeta *nmeta = (GstNetControlMessageMeta *) meta;
+ GstNetControlMessageMeta *smeta, *dmeta;
+ smeta = (GstNetControlMessageMeta *) meta;
/* we always copy no matter what transform */
- gst_buffer_add_net_control_message_meta (transbuf, nmeta->message);
+ dmeta = gst_buffer_add_net_control_message_meta (transbuf, smeta->message);
+ if (!dmeta)
+ return FALSE;
return TRUE;
}
test->duration = -1;
}
test->clock_rate = tmeta->clock_rate;
+ } else {
+ /* return FALSE, if transform type is not supported */
+ return FALSE;
}
return TRUE;
}