mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
omxvideodec: fix a query leak
Also add a debug message if query fails. https://bugzilla.gnome.org/show_bug.cgi?id=731898
This commit is contained in:
parent
ad969ffda3
commit
58aa603b36
1 changed files with 5 additions and 2 deletions
|
@ -1504,9 +1504,12 @@ eos:
|
||||||
{
|
{
|
||||||
g_mutex_lock (&self->drain_lock);
|
g_mutex_lock (&self->drain_lock);
|
||||||
if (self->draining) {
|
if (self->draining) {
|
||||||
|
GstQuery *query = gst_query_new_drain ();
|
||||||
|
|
||||||
/* Drain the pipeline to reclaim all memories back to the pool */
|
/* Drain the pipeline to reclaim all memories back to the pool */
|
||||||
gst_pad_peer_query (GST_VIDEO_DECODER_SRC_PAD (self),
|
if (!gst_pad_peer_query (GST_VIDEO_DECODER_SRC_PAD (self), query))
|
||||||
gst_query_new_drain ());
|
GST_DEBUG_OBJECT (self, "drain query failed");
|
||||||
|
gst_query_unref (query);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (self, "Drained");
|
GST_DEBUG_OBJECT (self, "Drained");
|
||||||
self->draining = FALSE;
|
self->draining = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue