diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-18 17:30:26 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-03-18 22:46:41 +0100 |
commit | 775c7584fdad53053ae5b22bb19074cc6022ee98 (patch) | |
tree | 149c7daf4efd3ecaf17a179949e20b44347859ab /sys/directdraw/gstdirectdrawsink.c | |
parent | 5258d372be503da09fa21fbde28afe619bc0cdc1 (diff) |
gst_element_class_set_details => gst_element_class_set_details_simple
Diffstat (limited to 'sys/directdraw/gstdirectdrawsink.c')
-rw-r--r-- | sys/directdraw/gstdirectdrawsink.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/sys/directdraw/gstdirectdrawsink.c b/sys/directdraw/gstdirectdrawsink.c index bb0332f84..8f73e28d1 100644 --- a/sys/directdraw/gstdirectdrawsink.c +++ b/sys/directdraw/gstdirectdrawsink.c @@ -48,13 +48,6 @@ GST_DEBUG_CATEGORY_STATIC (directdrawsink_debug); #define GST_CAT_DEFAULT directdrawsink_debug -/* elementfactory information */ -static const GstElementDetails gst_directdraw_sink_details = -GST_ELEMENT_DETAILS ("Direct Draw Video Sink", - "Sink/Video", - "Output to a video card via Direct Draw", - "Sebastien Moutte <sebastien@moutte.net>"); - static void gst_directdraw_sink_init_interfaces (GType type); GST_BOILERPLATE_FULL (GstDirectDrawSink, gst_directdraw_sink, GstVideoSink, @@ -387,7 +380,10 @@ gst_directdraw_sink_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_set_details (element_class, &gst_directdraw_sink_details); + gst_element_class_set_details_simple (element_class, "Direct Draw Video Sink", + "Sink/Video", + "Output to a video card via Direct Draw", + "Sebastien Moutte <sebastien@moutte.net>"); gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&directdrawsink_sink_factory)); } @@ -1730,9 +1726,9 @@ gst_directdraw_sink_get_depth (LPDDPIXELFORMAT lpddpfPixelFormat) gint order = 0, binary; binary = - lpddpfPixelFormat->dwRBitMask | lpddpfPixelFormat-> - dwGBitMask | lpddpfPixelFormat->dwBBitMask | lpddpfPixelFormat-> - dwRGBAlphaBitMask; + lpddpfPixelFormat-> + dwRBitMask | lpddpfPixelFormat->dwGBitMask | lpddpfPixelFormat-> + dwBBitMask | lpddpfPixelFormat->dwRGBAlphaBitMask; while (binary != 0) { if ((binary % 2) == 1) order++; |