gmyth-stream/gmemcoder/src/gmencoder.c
branchtrunk
changeset 840 5ab6a453da43
parent 826 e0152712fd4f
     1.1 --- a/gmyth-stream/gmemcoder/src/gmencoder.c	Thu Aug 23 22:45:15 2007 +0100
     1.2 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c	Wed Sep 05 21:30:56 2007 +0100
     1.3 @@ -866,7 +866,6 @@
     1.4  
     1.5      GstElement     *bsrc = NULL;
     1.6      GstElement     *src = NULL;
     1.7 -    GstElement     *queue = NULL;
     1.8      GstElement     *aqueue = NULL;
     1.9      GstElement     *vqueue = NULL;
    1.10      GstElement     *decode = NULL;
    1.11 @@ -888,11 +887,10 @@
    1.12      if (src == NULL)
    1.13          goto error;
    1.14  
    1.15 -    decode = gst_element_factory_make("decodebin", "decode");
    1.16 +    decode = gst_element_factory_make("decodebin2", "decode");
    1.17      if (decode == NULL)
    1.18          goto error;
    1.19  
    1.20 -    queue = gst_element_factory_make("queue", "queue_src");
    1.21      aqueue = gst_element_factory_make("queue", "aqueue");
    1.22      if (aqueue == NULL)
    1.23          goto error;
    1.24 @@ -901,9 +899,9 @@
    1.25      if (vqueue == NULL)
    1.26          goto error;
    1.27  
    1.28 -    gst_bin_add_many(GST_BIN(bsrc), src, queue, decode, aqueue, vqueue,
    1.29 +    gst_bin_add_many(GST_BIN(bsrc), src, decode, aqueue, vqueue,
    1.30                       NULL);
    1.31 -    gst_element_link_many(src, queue, decode, NULL);
    1.32 +    gst_element_link (src, decode);
    1.33  
    1.34      g_signal_connect(G_OBJECT(decode),
    1.35                       "new-decoded-pad",