v4l2: remove unused method
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 25 Jul 2011 13:51:22 +0000 (15:51 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 25 Jul 2011 13:51:22 +0000 (15:51 +0200)
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h

index e7ace31..a61f4f5 100644 (file)
@@ -1026,20 +1026,3 @@ start_failed:
     return GST_FLOW_ERROR;
   }
 }
-
-/**
- * gst_v4l2_buffer_pool_available_buffers:
- * @pool: the pool
- *
- * Check the number of buffers available to the driver, ie. buffers that
- * have been QBUF'd but not yet DQBUF'd.
- *
- * Returns: the number of buffers available.
- */
-gint
-gst_v4l2_buffer_pool_available_buffers (GstBufferPool * bpool)
-{
-  GstV4l2BufferPool *pool = GST_V4L2_BUFFER_POOL (bpool);
-
-  return pool->num_queued;
-}
index 1094cf1..f677e95 100644 (file)
@@ -88,8 +88,6 @@ GstBufferPool *     gst_v4l2_buffer_pool_new     (GstV4l2Object *obj);
 
 GstFlowReturn       gst_v4l2_buffer_pool_process (GstBufferPool * bpool, GstBuffer * buf);
 
-gint                gst_v4l2_buffer_pool_available_buffers (GstBufferPool *pool);
-
 G_END_DECLS
 
 #endif /*__GST_V4L2_BUFFER_POOL_H__ */