[telepathy-stream-engine/master] Remove the queue from the preview sink
Olivier Crête
olivier.crete at collabora.co.uk
Thu Dec 17 09:54:20 PST 2009
---
src/videopreview.c | 30 ++----------------------------
1 files changed, 2 insertions(+), 28 deletions(-)
diff --git a/src/videopreview.c b/src/videopreview.c
index f762563..89a099a 100644
--- a/src/videopreview.c
+++ b/src/videopreview.c
@@ -92,7 +92,6 @@ static GstElement *
make_sink (TpStreamEngineVideoPreview *self)
{
GstElement *bin = gst_bin_new (NULL);
- GstElement *queue;
GstElement *sink;
GstPad *pad;
GstPad *ghostpad;
@@ -112,35 +111,10 @@ make_sink (TpStreamEngineVideoPreview *self)
goto error;
}
- queue = gst_element_factory_make ("queue", NULL);
- if (!queue)
- {
- g_warning ("Could not make queue");
- goto error;
- }
-
- if (!gst_bin_add (GST_BIN (bin), queue))
- {
- gst_object_unref (queue);
- g_warning ("Could not add queue to bin");
- goto error;
- }
-
- g_object_set (queue,
- "leaky", 2,
- "max-size-buffers", 1,
- NULL);
-
- if (!gst_element_link (queue, sink))
- {
- g_warning ("Could not link queue and sink");
- goto error;
- }
-
- pad = gst_element_get_static_pad (queue, "sink");
+ pad = gst_element_get_static_pad (sink, "sink");
if (!pad)
{
- g_warning ("Could not get queue sink pad");
+ g_warning ("Could not get sink sink pad");
goto error;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list