diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-01-23 17:27:39 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-01-23 17:27:39 +0000 |
commit | 168db53bf471394ca9381b903d3e32d79664d8e5 (patch) | |
tree | 2206543d07359badefc9dc7ad8be972c6167088c /gst/smpte/gstmask.h | |
parent | a10f2478bbd1d04db5ceec6b0dc9eba6a6597bf8 (diff) |
gst/smpte/: constify some static structs.
Original commit message from CVS:
* gst/smpte/barboxwipes.c: (gst_wipe_boxes_draw),
(gst_wipe_triangles_clock_draw), (gst_wipe_triangles_draw):
* gst/smpte/gstmask.c: (_gst_mask_register):
* gst/smpte/gstmask.h:
* gst/smpte/gstsmpte.c: (gst_smpte_update_mask):
* gst/smpte/paint.c: (gst_smpte_paint_hbox), (draw_bresenham_line),
(gst_smpte_paint_triangle_clock):
constify some static structs.
Don't update the mask if nothing changed to the params.
Make sure we never draw outside of the picture. Fixes #398325.
Diffstat (limited to 'gst/smpte/gstmask.h')
-rw-r--r-- | gst/smpte/gstmask.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/smpte/gstmask.h b/gst/smpte/gstmask.h index bf63dc5a..f9cf6a9a 100644 --- a/gst/smpte/gstmask.h +++ b/gst/smpte/gstmask.h @@ -31,17 +31,17 @@ typedef void (*GstMaskDestroyFunc) (GstMask *mask); struct _GstMaskDefinition { gint type; - gchar *short_name; - gchar *long_name; + const gchar *short_name; + const gchar *long_name; GstMaskDrawFunc draw_func; GstMaskDestroyFunc destroy_func; - gpointer user_data; + gconstpointer user_data; }; struct _GstMask { gint type; guint32 *data; - gpointer user_data; + gconstpointer user_data; gint width; gint height; @@ -51,7 +51,7 @@ struct _GstMask { }; void _gst_mask_init (void); -void _gst_mask_register (GstMaskDefinition *definition); +void _gst_mask_register (const GstMaskDefinition *definition); void _gst_mask_default_destroy (GstMask *mask); |