summaryrefslogtreecommitdiff
path: root/libs/gst/net/gstnetcontrolmessagemeta.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/gst/net/gstnetcontrolmessagemeta.c')
-rw-r--r--libs/gst/net/gstnetcontrolmessagemeta.c7
1 files changed, 5 insertions, 2 deletions
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;
}