X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Fgst%2Fbase%2Fgstindex.c;h=9e4431794ca0714cad2b9be76141a8e1e75bd503;hb=e234a10c635cb290fbab1284b3a86202e9fc124c;hp=8d69b064e5ec3580564f8d5fc6c45b211b639cf6;hpb=c61b2ade7b6e7f05f495dd7b5734de9d987cf4a0;p=platform%2Fupstream%2Fgstreamer.git diff --git a/libs/gst/base/gstindex.c b/libs/gst/base/gstindex.c index 8d69b06..9e44317 100644 --- a/libs/gst/base/gstindex.c +++ b/libs/gst/base/gstindex.c @@ -131,18 +131,9 @@ gst_index_resolver_get_type (void) return index_resolver_type; } -GType -gst_index_entry_get_type (void) -{ - static GType index_entry_type = 0; - - if (!index_entry_type) { - index_entry_type = g_boxed_type_register_static ("GstIndexEntry", - (GBoxedCopyFunc) gst_index_entry_copy, - (GBoxedFreeFunc) gst_index_entry_free); - } - return index_entry_type; -} +G_DEFINE_BOXED_TYPE (GstIndexEntry, gst_index_entry, + (GBoxedCopyFunc) gst_index_entry_copy, + (GBoxedFreeFunc) gst_index_entry_free); #if 0 #define _do_init \