[svn r863] create a flag to work with decodebin1 trunk
authorrenatofilho
Wed Sep 26 19:04:24 2007 +0100 (2007-09-26)
branchtrunk
changeset 857dda04b6cf0b2
parent 856 07b0a8668009
child 858 ebd3aaff20e0
[svn r863] create a flag to work with decodebin1
gmyth-stream/gmencoder/src/gmencoder.c
     1.1 --- a/gmyth-stream/gmencoder/src/gmencoder.c	Mon Sep 24 16:08:56 2007 +0100
     1.2 +++ b/gmyth-stream/gmencoder/src/gmencoder.c	Wed Sep 26 19:04:24 2007 +0100
     1.3 @@ -887,7 +887,11 @@
     1.4      if (src == NULL)
     1.5          goto error;
     1.6  
     1.7 -    decode = gst_element_factory_make("decodebin2", "decode");
     1.8 +
     1.9 +    if (g_getenv ("USE_DECODEBIN1"))
    1.10 +      decode = gst_element_factory_make("decodebin", "decode");
    1.11 +    else
    1.12 +      decode = gst_element_factory_make("decodebin2", "decode");
    1.13      if (decode == NULL)
    1.14          goto error;
    1.15