From: Thomas V. S. <tho...@pd...> - 2004-02-12 18:20:28
|
CVS Root: /home/cvs/gstreamer Module: gst-plugins Changes by: thomasvs Date: Thu Feb 12 2004 10:19:03 PST Log message: fixes for #133316, #133663 and #133528 (Stefan Kost) Modified files: . : ChangeLog ext/ladspa : gstladspa.c gst/sine : gstsinesrc.c gst/vbidec : vbiscreen.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ChangeLog.diff?r1=1.297&r2=1.298 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/ext/ladspa/gstladspa.c.diff?r1=1.45&r2=1.46 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/sine/gstsinesrc.c.diff?r1=1.36&r2=1.37 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins/gst/vbidec/vbiscreen.c.diff?r1=1.3&r2=1.4 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/ChangeLog,v retrieving revision 1.297 retrieving revision 1.298 diff -u -d -r1.297 -r1.298 --- ChangeLog 12 Feb 2004 07:37:49 -0000 1.297 +++ ChangeLog 12 Feb 2004 18:18:50 -0000 1.298 @@ -1,3 +1,15 @@ +2004-02-12 Thomas Vander Stichele <thomas at apestaart dot org> + + * ext/ladspa/gstladspa.c: (gst_ladspa_base_init): + classify LADSPA plugins based on number of src/sink pads + (#133663, Stefan Kost) + * gst/sine/gstsinesrc.c: (gst_sinesrc_init): + fix dparams registration + (#133528, Stefan Kost) + * gst/vbidec/vbiscreen.c: (vbiscreen_set_current_cell): + fix use of isprint and use g_ascii_isprint instead + (#133316, Stefan Kost) + 2004-02-11 David Schleef <ds...@sc...> Convert a few inner loops to use liboil. This is currently Index: gstladspa.c =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/ext/ladspa/gstladspa.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- gstladspa.c 22 Dec 2003 01:46:59 -0000 1.45 +++ gstladspa.c 12 Feb 2004 18:18:50 -0000 1.46 @@ -92,14 +92,6 @@ desc = g_hash_table_lookup(ladspa_descriptors, GINT_TO_POINTER(0)); g_assert (desc); - /* construct the element details struct */ - details = g_new0(GstElementDetails,1); - details->longname = g_strdup(desc->Name); - details->klass = "Filter/Effect/Audio/LADSPA"; - details->description = details->longname; - details->author = g_strdup(desc->Maker); - gst_element_class_set_details (element_class, details); - /* pad templates */ klass->numports = desc->PortCount; klass->numsinkpads = 0; @@ -124,6 +116,17 @@ } } + /* construct the element details struct */ + details = g_new0(GstElementDetails,1); + details->longname = g_strdup(desc->Name); + details->description = details->longname; + details->author = g_strdup(desc->Maker); + if ((klass->numsinkpads >0) && (klass->numsrcpads >0)) details->klass = "Filter/Effect/Audio/LADSPA"; + else if((klass->numsinkpads==0) && (klass->numsrcpads >0)) details->klass = "Source/Audio/LADSPA"; + else if((klass->numsinkpads >0) && (klass->numsrcpads==0)) details->klass = "Sink/Audio/LADSPA"; + else details->klass = "Filter/Effect/Audio/LADSPA"; /* whatever this is */ + gst_element_class_set_details (element_class, details); + klass->srcpad_portnums = g_new0(gint,klass->numsrcpads); klass->sinkpad_portnums = g_new0(gint,klass->numsinkpads); sinkcount = 0; Index: gstsinesrc.c =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/gst/sine/gstsinesrc.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- gstsinesrc.c 4 Feb 2004 17:23:56 -0000 1.36 +++ gstsinesrc.c 12 Feb 2004 18:18:51 -0000 1.37 @@ -195,7 +195,7 @@ gst_dpman_add_required_dparam_callback ( src->dpman, - g_param_spec_double("freq","Frequency (Hz)","Frequency of the tone", + g_param_spec_float("freq","Frequency (Hz)","Frequency of the tone", 10.0, 10000.0, 350.0, G_PARAM_READWRITE), "hertz", gst_sinesrc_update_freq, @@ -204,7 +204,7 @@ gst_dpman_add_required_dparam_direct ( src->dpman, - g_param_spec_double("volume","Volume","Volume of the tone", + g_param_spec_float("volume","Volume","Volume of the tone", 0.0, 1.0, 0.8, G_PARAM_READWRITE), "scalar", &(src->volume) Index: vbiscreen.c =================================================================== RCS file: /home/cvs/gstreamer/gst-plugins/gst/vbidec/vbiscreen.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- vbiscreen.c 7 Nov 2003 12:46:35 -0000 1.3 +++ vbiscreen.c 12 Feb 2004 18:18:51 -0000 1.4 @@ -506,7 +506,7 @@ int base; if( !vs ) return; base = ( ( vs->top_of_screen + vs->cury ) % ( 2 * ROWS ) ) * COLS; - if( isprint( text ) ) + if( g_ascii_isprint( text ) ) vs->text[ base + vs->curx + vs->indent ] = text; else vs->text[ base + vs->curx + vs->indent ] = ' '; |