# HG changeset patch # User renatofilho # Date 1190829864 -3600 # Node ID dda04b6cf0b2ec328a032a7f1663c0218d56715b # Parent 07b0a8668009e918a2caf6de61fcd19882c259e6 [svn r863] create a flag to work with decodebin1 diff -r 07b0a8668009 -r dda04b6cf0b2 gmyth-stream/gmencoder/src/gmencoder.c --- a/gmyth-stream/gmencoder/src/gmencoder.c Mon Sep 24 16:08:56 2007 +0100 +++ b/gmyth-stream/gmencoder/src/gmencoder.c Wed Sep 26 19:04:24 2007 +0100 @@ -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;