summaryrefslogtreecommitdiff
path: root/libs/gst/net
diff options
context:
space:
mode:
Diffstat (limited to 'libs/gst/net')
-rw-r--r--libs/gst/net/gstnetaddressmeta.c7
-rw-r--r--libs/gst/net/gstnetcontrolmessagemeta.c7
2 files changed, 10 insertions, 4 deletions
diff --git a/libs/gst/net/gstnetaddressmeta.c b/libs/gst/net/gstnetaddressmeta.c
index 9c970ba33..c4cdd4d17 100644
--- a/libs/gst/net/gstnetaddressmeta.c
+++ b/libs/gst/net/gstnetaddressmeta.c
@@ -44,10 +44,13 @@ static gboolean
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;
}
diff --git a/libs/gst/net/gstnetcontrolmessagemeta.c b/libs/gst/net/gstnetcontrolmessagemeta.c
index fca39b545..ff9b8084a 100644
--- a/libs/gst/net/gstnetcontrolmessagemeta.c
+++ b/libs/gst/net/gstnetcontrolmessagemeta.c
@@ -47,10 +47,13 @@ static gboolean
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;
}