summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-07-15 18:10:04 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-07-15 18:28:47 +0100
commit4109c2193fb99277b12aef3a3d9ec7a51465f19b (patch)
tree2d2591ec8189777172232eb499d689b017c4a941
parentaba7cfa0643cf168d80dd5255aad58645eca47b6 (diff)
downloadgst-plugins-bad-4109c2193fb99277b12aef3a3d9ec7a51465f19b.tar.gz
gst-plugins-bad-4109c2193fb99277b12aef3a3d9ec7a51465f19b.tar.bz2
gst-plugins-bad-4109c2193fb99277b12aef3a3d9ec7a51465f19b.zip
metadata: Fix some compiler warnings
Cast some debug string parameters so that they don't cause mismatched type warnings.
-rw-r--r--ext/metadata/metadataexif.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/ext/metadata/metadataexif.c b/ext/metadata/metadataexif.c
index 0769dab4..cbdbf30d 100644
--- a/ext/metadata/metadataexif.c
+++ b/ext/metadata/metadataexif.c
@@ -694,14 +694,17 @@ metadataparse_exif_content_foreach_entry_func (ExifEntry * entry,
/* DDD - degrees */
value = (gdouble) rt->numerator / (gdouble) rt->denominator;
- GST_DEBUG ("deg: %lu / %lu", rt->numerator, rt->denominator);
+ GST_DEBUG ("deg: %lu / %lu", (gulong) rt->numerator,
+ (gulong) rt->denominator);
rt++;
/* MM - minutes and SS - seconds */
- GST_DEBUG ("min: %lu / %lu", rt->numerator, rt->denominator);
+ GST_DEBUG ("min: %lu / %lu", (gulong) rt->numerator,
+ (gulong) rt->denominator);
value += (gdouble) rt->numerator / ((gdouble) rt->denominator * 60.0);
rt++;
- GST_DEBUG ("sec: %lu / %lu", rt->numerator, rt->denominator);
+ GST_DEBUG ("sec: %lu / %lu", (gulong) rt->numerator,
+ (gulong) rt->denominator);
value +=
(gdouble) rt->numerator / ((gdouble) rt->denominator * 3600.0);
@@ -1052,21 +1055,24 @@ metadatamux_exif_for_each_tag_in_list (const GstTagList * list,
/* DDD - degrees */
rt->numerator = (gulong) v;
rt->denominator = 1;
- GST_DEBUG ("deg: %lf : %lu / %lu", v, rt->numerator, rt->denominator);
+ GST_DEBUG ("deg: %lf : %lu / %lu", v, (gulong) rt->numerator,
+ (gulong) rt->denominator);
v -= rt->numerator;
rt++;
/* MM - minutes */
rt->numerator = (gulong) (v * 60.0);
rt->denominator = 1;
- GST_DEBUG ("min: %lf : %lu / %lu", v, rt->numerator, rt->denominator);
+ GST_DEBUG ("min: %lf : %lu / %lu", v, (gulong) rt->numerator,
+ (gulong) rt->denominator);
v -= ((gdouble) rt->numerator / 60.0);
rt++;
/* SS - seconds */
rt->numerator = (gulong) (0.5 + v * 3600.0);
rt->denominator = 1;
- GST_DEBUG ("sec: %lf : %lu / %lu", v, rt->numerator, rt->denominator);
+ GST_DEBUG ("sec: %lf : %lu / %lu", v, (gulong) rt->numerator,
+ (gulong) rt->denominator);
if (entry->tag == EXIF_TAG_GPS_LONGITUDE) {
GST_DEBUG ("longitude : %lf", value);