From: Thomas V. S. <tho...@us...> - 2002-10-29 17:36:56
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: thomasvs Date: Tue Oct 29 2002 09:36:54 PST Log message: style stuff Modified files: gst : gsttypefind.c Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gsttypefind.c.diff?r1=1.27&r2=1.28 ====Begin Diffs==== Index: gsttypefind.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gsttypefind.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- gsttypefind.c 29 Sep 2002 18:12:50 -0000 1.27 +++ gsttypefind.c 29 Oct 2002 17:36:41 -0000 1.28 @@ -36,7 +36,7 @@ "LGPL", "Finds the media type of a stream", VERSION, - "Erik Walthinsen <om...@cs...>" + "Erik Walthinsen <om...@cs...>," "Wim Taymans <wim...@ch...>", "(C) 1999", }; @@ -54,13 +54,15 @@ }; -static void gst_type_find_class_init (GstTypeFindClass *klass); +static void gst_type_find_class_init (GstTypeFindClass *klass); static void gst_type_find_init (GstTypeFind *typefind); -static void gst_type_find_set_property (GObject *object, guint prop_id, - const GValue *value, GParamSpec *pspec); -static void gst_type_find_get_property (GObject *object, guint prop_id, - GValue *value, GParamSpec *pspec); +static void gst_type_find_set_property (GObject *object, guint prop_id, + const GValue *value, + GParamSpec *pspec); +static void gst_type_find_get_property (GObject *object, guint prop_id, + GValue *value, + GParamSpec *pspec); static void gst_type_find_chain (GstPad *pad, GstBuffer *buf); @@ -121,11 +123,11 @@ } static void -gst_type_find_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) +gst_type_find_set_property (GObject *object, guint prop_id, + const GValue *value, GParamSpec *pspec) { GstTypeFind *typefind; - /* it's not null if we got it, but it might not be ours */ g_return_if_fail (GST_IS_TYPE_FIND (object)); typefind = GST_TYPE_FIND (object); @@ -137,11 +139,11 @@ } static void -gst_type_find_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) +gst_type_find_get_property (GObject *object, guint prop_id, + GValue *value, GParamSpec *pspec) { GstTypeFind *typefind; - /* it's not null if we got it, but it might not be ours */ g_return_if_fail (GST_IS_TYPE_FIND (object)); typefind = GST_TYPE_FIND (object); @@ -174,7 +176,7 @@ while (type_list) { GSList *factories; - type = (GstType *)type_list->data; + type = (GstType *) type_list->data; factories = type->factories; @@ -183,10 +185,11 @@ GstTypeFindFunc typefindfunc = (GstTypeFindFunc)factory->typefindfunc; GstCaps *caps; - GST_DEBUG (0,"try type (%p) :%d \"%s\" %p", factory, type->id, type->mime, typefindfunc); + GST_DEBUG (GST_CAT_TYPES, "try type (%p) :%d \"%s\" %p", + factory, type->id, type->mime, typefindfunc); if (typefindfunc && (caps = typefindfunc (buf, factory))) { - GST_DEBUG (0,"found type :%d \"%s\" \"%s\"", caps->id, type->mime, - gst_caps_get_name (caps)); + GST_DEBUG (GST_CAT_TYPES, "found type: %d \"%s\" \"%s\"", + caps->id, type->mime, gst_caps_get_name (caps)); typefind->caps = caps; if (gst_pad_try_set_caps (pad, caps) <= 0) { |