From: <bi...@fr...> - 2005-06-20 13:44:28
|
CVS Root: /cvs/gstreamer Module: gst-ffmpeg Changes by: bilboed Date: Mon Jun 20 2005 06:44:18 PDT Log message: * ext/libpostproc/gstpostproc.c: (gst_postproc_register): It works better when filing the hash_table BEFORE registering the element. Modified files: . : ChangeLog ext/libpostproc : gstpostproc.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-ffmpeg/ChangeLog.diff?r1=1.172&r2=1.173 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-ffmpeg/ext/libpostproc/gstpostproc.c.diff?r1=1.1&r2=1.2 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-ffmpeg/ChangeLog,v retrieving revision 1.172 retrieving revision 1.173 diff -u -d -r1.172 -r1.173 --- ChangeLog 20 Jun 2005 13:07:51 -0000 1.172 +++ ChangeLog 20 Jun 2005 13:44:05 -0000 1.173 @@ -1,5 +1,10 @@ 2005-06-20 Edward Hervey <ed...@fl...> + * ext/libpostproc/gstpostproc.c: (gst_postproc_register): + It works better when filing the hash_table BEFORE registering the element. + +2005-06-20 Edward Hervey <ed...@fl...> + * ext/Makefile.am: (SUBDIRS): * ext/libpostproc: * ext/libpostproc/Makefile.am: Index: gstpostproc.c RCS file: /cvs/gstreamer/gst-ffmpeg/ext/libpostproc/gstpostproc.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gstpostproc.c 20 Jun 2005 13:07:52 -0000 1.1 +++ gstpostproc.c 20 Jun 2005 13:44:06 -0000 1.2 @@ -470,6 +470,10 @@ for (i = 0; filterdetails[i].shortname; i++) { gchar *type_name; + g_hash_table_insert (global_plugins, + GINT_TO_POINTER (0), + GINT_TO_POINTER (i)); /* create type_name */ type_name = g_strdup_printf("postproc_%s", filterdetails[i].longname); if (g_type_from_name (type_name)) { @@ -480,6 +484,10 @@ /* create gtype */ type = g_type_register_static (GST_TYPE_ELEMENT, type_name, &typeinfo, 0); + GINT_TO_POINTER (type), /* register element */ if (!gst_element_register (plugin, type_name, GST_RANK_PRIMARY, type)) { g_free(type_name); @@ -487,9 +495,6 @@ } g_free(type_name); - g_hash_table_insert (global_plugins, - GINT_TO_POINTER (type), - GINT_TO_POINTER (i)); } g_hash_table_remove (global_plugins, GINT_TO_POINTER (0)); return TRUE; |