mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
gst: pipewirepool: remove dead code
This commit is contained in:
parent
0b5f716526
commit
40fd2553ea
2 changed files with 0 additions and 34 deletions
|
|
@ -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);
|
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
|
static GstFlowReturn
|
||||||
acquire_buffer (GstBufferPool * pool, GstBuffer ** buffer,
|
acquire_buffer (GstBufferPool * pool, GstBuffer ** buffer,
|
||||||
GstBufferPoolAcquireParams * params)
|
GstBufferPoolAcquireParams * params)
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,6 @@ void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *buf
|
||||||
|
|
||||||
GstPipeWirePoolData *gst_pipewire_pool_get_data (GstBuffer *buffer);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_PIPEWIRE_POOL_H__ */
|
#endif /* __GST_PIPEWIRE_POOL_H__ */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue