gmyth-stream/gmencoder/src/gmencoder.c
branchtrunk
changeset 888 f1af7f8cd7d9
parent 857 dda04b6cf0b2
child 889 83851e17c385
     1.1 --- a/gmyth-stream/gmencoder/src/gmencoder.c	Wed Sep 26 19:04:24 2007 +0100
     1.2 +++ b/gmyth-stream/gmencoder/src/gmencoder.c	Mon Jan 07 18:49:22 2008 +0000
     1.3 @@ -308,7 +308,6 @@
     1.4          goto error;
     1.5      }
     1.6  
     1.7 -    g_object_set(G_OBJECT(aencode), "bitrate", 32, NULL);
     1.8      /*
     1.9       * if (rate > 0) { g_object_set (G_OBJECT (aencode), "bitrate", 32,
    1.10       * NULL); } 
    1.11 @@ -371,7 +370,7 @@
    1.12      GstElement     *vcolorspace = NULL;
    1.13      GstElement     *vencode = NULL;
    1.14      GstElement     *vrate = NULL;
    1.15 -    GstElement	   *deinterlace = NULL;
    1.16 +    GstElement     *deinterlace = NULL;
    1.17      GstElement     *walk = NULL;
    1.18      GstPad         *vpad = NULL;
    1.19  
    1.20 @@ -382,8 +381,8 @@
    1.21  
    1.22      if (use_deinterlace) {
    1.23          deinterlace = gst_element_factory_make ("ffdeinterlace", "deinterlace");
    1.24 -	    if (deinterlace == NULL) {
    1.25 -	        g_warning ("Fail to create deinterlace element: Continue without deinterlace.");
    1.26 +        if (deinterlace == NULL) {
    1.27 +           g_warning ("Fail to create deinterlace element: Continue without deinterlace.");
    1.28          }
    1.29      }
    1.30  
    1.31 @@ -414,11 +413,10 @@
    1.32      if ((width > 0) && (height > 0)) {
    1.33          // Scalling video
    1.34          GstCaps        *vcaps;
    1.35 -        GstElement     *vscale =
    1.36 -            gst_element_factory_make("videoscale", "vscale");
    1.37 +        GstElement     *vscale;
    1.38  
    1.39 -	g_object_set (G_OBJECT (vscale), "method", 1, NULL);
    1.40 -
    1.41 +        vscale = gst_element_factory_make("videoscale", "vscale");
    1.42 +        //g_object_set (G_OBJECT (vscale), "method", 1, NULL);
    1.43          gst_bin_add(GST_BIN(vbin), vscale);
    1.44  
    1.45          vcaps = gst_caps_new_simple("video/x-raw-yuv",