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.c | |
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.c')
-rw-r--r-- | gst/smpte/gstmask.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/smpte/gstmask.c b/gst/smpte/gstmask.c index 0e2cf01f..dfb856c2 100644 --- a/gst/smpte/gstmask.c +++ b/gst/smpte/gstmask.c @@ -41,10 +41,11 @@ gst_mask_compare (GstMaskDefinition * def1, GstMaskDefinition * def2) } void -_gst_mask_register (GstMaskDefinition * definition) +_gst_mask_register (const GstMaskDefinition * definition) { masks = - g_list_insert_sorted (masks, definition, (GCompareFunc) gst_mask_compare); + g_list_insert_sorted (masks, (gpointer) definition, + (GCompareFunc) gst_mask_compare); } const GList * |