libvisual/libvisual-0.4.0.diff

63 lines
1.8 KiB
Diff

--- libvisual/lv_audio.c
+++ libvisual/lv_audio.c
@@ -1105,7 +1105,7 @@
{
float *sbuf = visual_buffer_get_data (src);
int entries = visual_buffer_get_size (dest) / size;
- int signedcorr;
+ int signedcorr = 0;
int i;
signedcorr += byte_max_numeric (size) / 2;
--- libvisual/lv_buffer.c
+++ libvisual/lv_buffer.c
@@ -576,7 +576,7 @@
*/
int visual_buffer_fill_with_pattern (VisBuffer *buffer, void *data, visual_size_t size)
{
- int offset;
+ int offset = 0;
visual_log_return_val_if_fail (buffer != NULL, -VISUAL_ERROR_BUFFER_NULL);
visual_log_return_val_if_fail (data != NULL, -VISUAL_ERROR_NULL);
--- libvisual/lv_hashmap.c
+++ libvisual/lv_hashmap.c
@@ -46,7 +46,7 @@
static int hashmap_destroy (VisCollection *collection);
-static int hashmap_chain_destroy (VisHashmap *hashmap, VisList *list);
+static void hashmap_chain_destroy (VisHashmap *hashmap, VisList *list);
static int hashmap_size (VisCollection *collection);
static VisCollectionIter *hashmap_iter (VisCollection *collection);
@@ -81,7 +81,7 @@
}
/* We can't use collection dtor because we need to chain up (HashChainElem -> DataElem) */
-static int hashmap_chain_destroy (VisHashmap *hashmap, VisList *list)
+static void hashmap_chain_destroy (VisHashmap *hashmap, VisList *list)
{
VisCollectionDestroyerFunc destroyer;
VisHashmapChainEntry *mentry;
--- libvisual/lv_libvisual.c
+++ libvisual/lv_libvisual.c
@@ -72,7 +72,7 @@
static int init_params (VisParamContainer *paramcontainer);
static VisUIWidget *make_userinterface (void);
-static int free_plugpaths (void);
+static void free_plugpaths (void);
static int init_params (VisParamContainer *paramcontainer)
{
@@ -181,7 +181,7 @@
return vbox;
}
-static int free_plugpaths ()
+static void free_plugpaths ()
{
int i;