diff -r 3c18c36245e7 -r c5a9d9583e64 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 Mon Nov 19 17:57:40 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;