X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstregistrybinary.c;h=2e6451b821cf08a5e4a9b39c4ada3b296a225db8;hb=e6bd5b41935f125bf43e030dcb909c3537d33b31;hp=c358f31c73e5bc9ed4a4954668855755311832d2;hpb=0ba0f7cd5b905848b0acb8859ff42b32951b1af8;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c index c358f31..2e6451b 100644 --- a/gst/gstregistrybinary.c +++ b/gst/gstregistrybinary.c @@ -18,8 +18,8 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ /* FIXME: @@ -56,6 +56,8 @@ #include #include #include +#include +#include #include #include #include @@ -300,7 +302,7 @@ gst_registry_binary_write_chunk (BinaryRegistryCache * cache, gchar padder[ALIGNMENT] = { 0, }; int padsize = 0; - /* Padding to insert the struct that requiere word alignment */ + /* Padding to insert the struct that require word alignment */ if ((chunk->align) && (alignment (*file_position) != 0)) { padsize = ALIGNMENT - alignment (*file_position); if (gst_registry_binary_cache_write (cache, *file_position, @@ -334,7 +336,7 @@ gst_registry_binary_initialize_magic (GstBinaryRegistryMagic * m) { memset (m, 0, sizeof (GstBinaryRegistryMagic)); - if (!strncpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR, + if (!memcpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR, GST_MAGIC_BINARY_REGISTRY_LEN) || !strncpy (m->version, GST_MAGIC_BINARY_VERSION_STR, GST_MAGIC_BINARY_VERSION_LEN)) { @@ -378,7 +380,7 @@ priv_gst_registry_binary_write_cache (GstRegistry * registry, GList * plugins, if (!plugin->filename) continue; - if (plugin->flags & GST_PLUGIN_FLAG_CACHED) { + if (GST_OBJECT_FLAG_IS_SET (plugin, GST_PLUGIN_FLAG_CACHED)) { GStatBuf statbuf; if (g_stat (plugin->filename, &statbuf) < 0 || @@ -525,6 +527,8 @@ priv_gst_registry_binary_read_cache (GstRegistry * registry, /* make sure these types exist */ GST_TYPE_ELEMENT_FACTORY; GST_TYPE_TYPE_FIND_FACTORY; + GST_TYPE_DEVICE_PROVIDER_FACTORY; + GST_TYPE_DYNAMIC_TYPE_FACTORY; #ifndef GST_DISABLE_GST_DEBUG timer = g_timer_new ();