downloadbuffer: remove unused struct member
authorTim-Philipp Müller <tim@centricular.com>
Wed, 26 Jul 2017 13:17:46 +0000 (14:17 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 26 Jul 2017 13:20:44 +0000 (14:20 +0100)
This was used in queue2 when handling in coming serialized
queries, but downloadbuffer just refuses serialized queries.

plugins/elements/gstdownloadbuffer.c
plugins/elements/gstdownloadbuffer.h

index 1dea8a7..beff9db 100644 (file)
@@ -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);
index f38cdd9..f33bbf1 100644 (file)
@@ -112,8 +112,6 @@ struct _GstDownloadBuffer
 
   GstEvent *stream_start_event;
   GstEvent *segment_event;
-
-  volatile gint downstream_may_block;
 };
 
 struct _GstDownloadBufferClass