gst_qtdemux_stream_free (GstQTDemux * qtdemux, QtDemuxStream * stream)
{
if (stream->allocator)
- gst_allocator_unref (stream->allocator);
+ gst_object_unref (stream->allocator);
while (stream->buffers) {
gst_buffer_unref (GST_BUFFER_CAST (stream->buffers->data));
stream->buffers = g_slist_delete_link (stream->buffers, stream->buffers);
}
if (stream->allocator)
- gst_allocator_unref (stream->allocator);
+ gst_object_unref (stream->allocator);
if (gst_query_get_n_allocation_params (query) > 0) {
/* try the allocator */
pool->num_buffers = num_buffers;
pool->copy_threshold = copy_threshold;
if (pool->allocator)
- gst_allocator_unref (pool->allocator);
+ gst_object_unref (pool->allocator);
if ((pool->allocator = allocator))
- gst_allocator_ref (allocator);
+ gst_object_ref (allocator);
pool->params = params;
gst_buffer_pool_config_set_params (config, caps, size, min_buffers,
if (pool->video_fd >= 0)
v4l2_close (pool->video_fd);
if (pool->allocator)
- gst_allocator_unref (pool->allocator);
+ gst_object_unref (pool->allocator);
g_free (pool->buffers);
G_OBJECT_CLASS (parent_class)->finalize (object);