diff -r 3c18c36245e7 -r d3d62eca131c gmyth-stream/gmencoder/src/gmencoder.c --- a/gmyth-stream/gmencoder/src/gmencoder.c Tue Sep 18 13:45:36 2007 +0100 +++ b/gmyth-stream/gmencoder/src/gmencoder.c Wed Nov 21 15:06:32 2007 +0000 @@ -887,7 +887,11 @@ if (src == NULL) goto error; - decode = gst_element_factory_make("decodebin2", "decode"); + + if (g_getenv ("USE_DECODEBIN1")) + decode = gst_element_factory_make("decodebin", "decode"); + else + decode = gst_element_factory_make("decodebin2", "decode"); if (decode == NULL) goto error;