diff -r dda04b6cf0b2 -r f1af7f8cd7d9 gmyth-stream/gmencoder/src/gmencoder.c --- a/gmyth-stream/gmencoder/src/gmencoder.c Wed Sep 26 19:04:24 2007 +0100 +++ b/gmyth-stream/gmencoder/src/gmencoder.c Mon Jan 07 18:49:22 2008 +0000 @@ -308,7 +308,6 @@ goto error; } - g_object_set(G_OBJECT(aencode), "bitrate", 32, NULL); /* * if (rate > 0) { g_object_set (G_OBJECT (aencode), "bitrate", 32, * NULL); } @@ -371,7 +370,7 @@ GstElement *vcolorspace = NULL; GstElement *vencode = NULL; GstElement *vrate = NULL; - GstElement *deinterlace = NULL; + GstElement *deinterlace = NULL; GstElement *walk = NULL; GstPad *vpad = NULL; @@ -382,8 +381,8 @@ if (use_deinterlace) { deinterlace = gst_element_factory_make ("ffdeinterlace", "deinterlace"); - if (deinterlace == NULL) { - g_warning ("Fail to create deinterlace element: Continue without deinterlace."); + if (deinterlace == NULL) { + g_warning ("Fail to create deinterlace element: Continue without deinterlace."); } } @@ -414,11 +413,10 @@ if ((width > 0) && (height > 0)) { // Scalling video GstCaps *vcaps; - GstElement *vscale = - gst_element_factory_make("videoscale", "vscale"); + GstElement *vscale; - g_object_set (G_OBJECT (vscale), "method", 1, NULL); - + vscale = gst_element_factory_make("videoscale", "vscale"); + //g_object_set (G_OBJECT (vscale), "method", 1, NULL); gst_bin_add(GST_BIN(vbin), vscale); vcaps = gst_caps_new_simple("video/x-raw-yuv",