mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
stats: Fix warning
This commit is contained in:
parent
2be7e4758b
commit
2c6dd70217
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue