dvbsrc: avoid possible race on _output_frontend_stats()

Make sure we send out our info message before we give up ownership
of the structure.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2016-04-29 23:32:03 -07:00
parent 05ebd33887
commit 8c03f448c3

View file

@ -2105,9 +2105,9 @@ gst_dvbsrc_output_frontend_stats (GstDvbSrc * src)
"There were errors getting frontend status information: '%s'",
g_strerror (errno));
GST_INFO_OBJECT (src, "Frontend stats: %" GST_PTR_FORMAT, structure);
message = gst_message_new_element (GST_OBJECT (src), structure);
gst_element_post_message (GST_ELEMENT (src), message);
GST_INFO_OBJECT (src, "Frontend stats: %" GST_PTR_FORMAT, structure);
}
struct diseqc_cmd