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:
parent
05ebd33887
commit
8c03f448c3
@ -2105,9 +2105,9 @@ gst_dvbsrc_output_frontend_stats (GstDvbSrc * src)
|
|||||||
"There were errors getting frontend status information: '%s'",
|
"There were errors getting frontend status information: '%s'",
|
||||||
g_strerror (errno));
|
g_strerror (errno));
|
||||||
|
|
||||||
|
GST_INFO_OBJECT (src, "Frontend stats: %" GST_PTR_FORMAT, structure);
|
||||||
message = gst_message_new_element (GST_OBJECT (src), structure);
|
message = gst_message_new_element (GST_OBJECT (src), structure);
|
||||||
gst_element_post_message (GST_ELEMENT (src), message);
|
gst_element_post_message (GST_ELEMENT (src), message);
|
||||||
GST_INFO_OBJECT (src, "Frontend stats: %" GST_PTR_FORMAT, structure);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct diseqc_cmd
|
struct diseqc_cmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user