diff -r e0152712fd4f -r 3539377c1807 gmyth-stream/gmemcoder/src/gmencoder.c --- a/gmyth-stream/gmemcoder/src/gmencoder.c Thu Aug 23 22:45:15 2007 +0100 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c Mon Sep 03 21:14:14 2007 +0100 @@ -866,7 +866,6 @@ GstElement *bsrc = NULL; GstElement *src = NULL; - GstElement *queue = NULL; GstElement *aqueue = NULL; GstElement *vqueue = NULL; GstElement *decode = NULL; @@ -888,11 +887,10 @@ if (src == NULL) goto error; - decode = gst_element_factory_make("decodebin", "decode"); + decode = gst_element_factory_make("decodebin2", "decode"); if (decode == NULL) goto error; - queue = gst_element_factory_make("queue", "queue_src"); aqueue = gst_element_factory_make("queue", "aqueue"); if (aqueue == NULL) goto error; @@ -901,9 +899,9 @@ if (vqueue == NULL) goto error; - gst_bin_add_many(GST_BIN(bsrc), src, queue, decode, aqueue, vqueue, + gst_bin_add_many(GST_BIN(bsrc), src, decode, aqueue, vqueue, NULL); - gst_element_link_many(src, queue, decode, NULL); + gst_element_link (src, decode); g_signal_connect(G_OBJECT(decode), "new-decoded-pad",