gst: pipewirepool: remove dead code

This commit is contained in:
George Kiagiadakis 2024-05-28 14:08:32 +03:00
parent 0b5f716526
commit 40fd2553ea
2 changed files with 0 additions and 34 deletions

View file

@ -124,37 +124,6 @@ GstPipeWirePoolData *gst_pipewire_pool_get_data (GstBuffer *buffer)
return gst_mini_object_get_qdata (GST_MINI_OBJECT_CAST (buffer), pool_data_quark);
}
#if 0
gboolean
gst_pipewire_pool_add_buffer (GstPipeWirePool *pool, GstBuffer *buffer)
{
g_return_val_if_fail (GST_IS_PIPEWIRE_POOL (pool), FALSE);
g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE);
GST_OBJECT_LOCK (pool);
g_queue_push_tail (&pool->available, buffer);
g_cond_signal (&pool->cond);
GST_OBJECT_UNLOCK (pool);
return TRUE;
}
gboolean
gst_pipewire_pool_remove_buffer (GstPipeWirePool *pool, GstBuffer *buffer)
{
gboolean res;
g_return_val_if_fail (GST_IS_PIPEWIRE_POOL (pool), FALSE);
g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE);
GST_OBJECT_LOCK (pool);
res = g_queue_remove (&pool->available, buffer);
GST_OBJECT_UNLOCK (pool);
return res;
}
#endif
static GstFlowReturn
acquire_buffer (GstBufferPool * pool, GstBuffer ** buffer,
GstBufferPoolAcquireParams * params)

View file

@ -69,9 +69,6 @@ void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *buf
GstPipeWirePoolData *gst_pipewire_pool_get_data (GstBuffer *buffer);
//gboolean gst_pipewire_pool_add_buffer (GstPipeWirePool *pool, GstBuffer *buffer);
//gboolean gst_pipewire_pool_remove_buffer (GstPipeWirePool *pool, GstBuffer *buffer);
G_END_DECLS
#endif /* __GST_PIPEWIRE_POOL_H__ */