diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-07-26 14:17:46 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-07-26 14:20:44 +0100 |
commit | 6575389908e3862d38b4b9752065352b134b600b (patch) | |
tree | 4000494aa4bdd247b485265cb34babf5e2026573 /plugins | |
parent | 1f89d6d7395376e3f891c1c0404a0585977a186c (diff) |
downloadbuffer: remove unused struct member
This was used in queue2 when handling in coming serialized
queries, but downloadbuffer just refuses serialized queries.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/elements/gstdownloadbuffer.c | 5 | ||||
-rw-r--r-- | plugins/elements/gstdownloadbuffer.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/plugins/elements/gstdownloadbuffer.c b/plugins/elements/gstdownloadbuffer.c index 1dea8a7e4..beff9dba3 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 f38cdd9b6..f33bbf1fa 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 |