mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
timecodestamper: Unref latency query after usage
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1249>
This commit is contained in:
parent
77784c7aba
commit
0dfd05e574
1 changed files with 2 additions and 0 deletions
|
@ -1047,6 +1047,7 @@ gst_timecodestamper_update_latency (GstTimeCodeStamper * timecodestamper,
|
||||||
if (!gst_pad_peer_query (pad, query)) {
|
if (!gst_pad_peer_query (pad, query)) {
|
||||||
GST_WARNING_OBJECT (pad, "Failed to query latency");
|
GST_WARNING_OBJECT (pad, "Failed to query latency");
|
||||||
gst_pad_mark_reconfigure (pad);
|
gst_pad_mark_reconfigure (pad);
|
||||||
|
gst_query_unref (query);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1059,6 +1060,7 @@ gst_timecodestamper_update_latency (GstTimeCodeStamper * timecodestamper,
|
||||||
"Queried latency: live %d, min latency %" GST_TIME_FORMAT, *live,
|
"Queried latency: live %d, min latency %" GST_TIME_FORMAT, *live,
|
||||||
GST_TIME_ARGS (*latency));
|
GST_TIME_ARGS (*latency));
|
||||||
g_mutex_unlock (&timecodestamper->mutex);
|
g_mutex_unlock (&timecodestamper->mutex);
|
||||||
|
gst_query_unref (query);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue