[gst-cvs] CVS: gstreamer/plugins/mp3encode/lame gstlame.c,1.20,1.20.4.1

Erik Walthinsen omegahacker at users.sourceforge.net
Wed Oct 17 01:52:31 PDT 2001


Update of /cvsroot/gstreamer/gstreamer/plugins/mp3encode/lame
In directory usw-pr-cvs1:/tmp/cvs-serv20849/plugins/mp3encode/lame

Modified Files:
      Tag: BRANCH-EVENTS1
	gstlame.c 
Log Message:
merge from HEAD on 20011016

Index: gstlame.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/plugins/mp3encode/lame/gstlame.c,v
retrieving revision 1.20
retrieving revision 1.20.4.1
diff -u -d -r1.20 -r1.20.4.1
--- gstlame.c	2001/08/21 20:16:47	1.20
+++ gstlame.c	2001/10/17 08:51:01	1.20.4.1
@@ -222,13 +222,13 @@
 
   g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_BITRATE,
     g_param_spec_int("bitrate","bitrate","bitrate",
-                     G_MININT,G_MAXINT,0,G_PARAM_READWRITE)); // CHECKME
+                     G_MININT,G_MAXINT,128,G_PARAM_READWRITE)); // CHECKME
   g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_COMPRESSION_RATIO,
     g_param_spec_float("compression_ratio","compression_ratio","compression_ratio",
                        0.0,200.0,11.0,G_PARAM_READWRITE)); // CHECKME
   g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_QUALITY,
     g_param_spec_enum("quality","quality","quality",
-                      GST_TYPE_LAME_QUALITY,0,G_PARAM_READWRITE)); // CHECKME!
+                      GST_TYPE_LAME_QUALITY,5,G_PARAM_READWRITE)); // CHECKME!
   g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_MODE,
     g_param_spec_enum("mode","mode","mode",
                       GST_TYPE_LAME_MODE,0,G_PARAM_READWRITE)); // CHECKME!
@@ -637,7 +637,8 @@
   }
 
   GST_DEBUG (0,"encoded %d bytes of audio to %d bytes of mp3\n",GST_BUFFER_SIZE (buf), mp3_size);
-
+  gst_buffer_unref(buf);
+  
   if (mp3_size > 0) {
     outbuf = gst_buffer_new ();
     GST_BUFFER_DATA (outbuf) = mp3_data;





More information about the Gstreamer-commits mailing list