stats: Fix warning
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 14 Oct 2016 09:59:24 +0000 (11:59 +0200)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 14 Oct 2016 15:30:01 +0000 (17:30 +0200)
plugins/tracers/gststats.c

index f4b536b22b15c3fdc5e1c7143508f7ed3792f610..8b7705b5edbe84474bffa8b05509c618f9baf244 100644 (file)
@@ -459,7 +459,8 @@ do_post_message_pre (GstStatsTracer * self, guint64 ts, GstElement * elem,
 {
   GstElementStats *stats = get_element_stats (self, elem);
   const GstStructure *msg_s = gst_message_get_structure (msg);
-  GstStructure *s = msg_s ? msg_s : gst_structure_new_empty ("dummy");
+  GstStructure *s =
+      msg_s ? (GstStructure *) msg_s : gst_structure_new_empty ("dummy");
 
   stats->last_ts = ts;
   /* FIXME: work out whether using NULL instead of a dummy struct would work */