diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-10-14 11:59:24 +0200 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-10-14 17:30:01 +0200 |
commit | 2c6dd70217b6370e3316f0743b1a93459ba61103 (patch) | |
tree | dead21c3ba4bc1c44fdf7a76ecdba7d7e1e05c1d | |
parent | 2be7e4758bd8320a51d5c945276c4b8d49f5915e (diff) |
stats: Fix warning
-rw-r--r-- | plugins/tracers/gststats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/tracers/gststats.c b/plugins/tracers/gststats.c index f4b536b22..8b7705b5e 100644 --- a/plugins/tracers/gststats.c +++ b/plugins/tracers/gststats.c @@ -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 */ |