From 6575389908e3862d38b4b9752065352b134b600b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 26 Jul 2017 14:17:46 +0100 Subject: [PATCH] downloadbuffer: remove unused struct member This was used in queue2 when handling in coming serialized queries, but downloadbuffer just refuses serialized queries. --- plugins/elements/gstdownloadbuffer.c | 5 +---- plugins/elements/gstdownloadbuffer.h | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/elements/gstdownloadbuffer.c b/plugins/elements/gstdownloadbuffer.c index 1dea8a7..beff9db 100644 --- a/plugins/elements/gstdownloadbuffer.c +++ b/plugins/elements/gstdownloadbuffer.c @@ -1122,8 +1122,7 @@ gst_download_buffer_handle_sink_query (GstPad * pad, GstObject * parent, switch (GST_QUERY_TYPE (query)) { default: if (GST_QUERY_IS_SERIALIZED (query)) { - GST_LOG_OBJECT (dlbuf, "received query %p", query); - GST_DEBUG_OBJECT (dlbuf, "refusing query, we are not using the dlbuf"); + GST_DEBUG_OBJECT (dlbuf, "refusing serialized query %p", query); res = FALSE; } else { res = gst_pad_query_default (pad, parent, query); @@ -1329,14 +1328,12 @@ gst_download_buffer_loop (GstPad * pad) /* update the buffering */ msg = update_buffering (dlbuf); - g_atomic_int_set (&dlbuf->downstream_may_block, 1); GST_DOWNLOAD_BUFFER_MUTEX_UNLOCK (dlbuf); if (msg != NULL) gst_element_post_message (GST_ELEMENT_CAST (dlbuf), msg); ret = gst_pad_push (dlbuf->srcpad, buffer); - g_atomic_int_set (&dlbuf->downstream_may_block, 0); /* need to check for srcresult here as well */ GST_DOWNLOAD_BUFFER_MUTEX_LOCK_CHECK (dlbuf, dlbuf->srcresult, out_flushing); diff --git a/plugins/elements/gstdownloadbuffer.h b/plugins/elements/gstdownloadbuffer.h index f38cdd9..f33bbf1 100644 --- a/plugins/elements/gstdownloadbuffer.h +++ b/plugins/elements/gstdownloadbuffer.h @@ -112,8 +112,6 @@ struct _GstDownloadBuffer GstEvent *stream_start_event; GstEvent *segment_event; - - volatile gint downstream_may_block; }; struct _GstDownloadBufferClass -- 2.7.4