mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
metadata: Fix some compiler warnings
Cast some debug string parameters so that they don't cause mismatched type warnings.
This commit is contained in:
parent
aba7cfa064
commit
4109c2193f
1 changed files with 12 additions and 6 deletions
|
@ -694,14 +694,17 @@ metadataparse_exif_content_foreach_entry_func (ExifEntry * entry,
|
||||||
|
|
||||||
/* DDD - degrees */
|
/* DDD - degrees */
|
||||||
value = (gdouble) rt->numerator / (gdouble) rt->denominator;
|
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++;
|
rt++;
|
||||||
|
|
||||||
/* MM - minutes and SS - seconds */
|
/* 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);
|
value += (gdouble) rt->numerator / ((gdouble) rt->denominator * 60.0);
|
||||||
rt++;
|
rt++;
|
||||||
GST_DEBUG ("sec: %lu / %lu", rt->numerator, rt->denominator);
|
GST_DEBUG ("sec: %lu / %lu", (gulong) rt->numerator,
|
||||||
|
(gulong) rt->denominator);
|
||||||
value +=
|
value +=
|
||||||
(gdouble) rt->numerator / ((gdouble) rt->denominator * 3600.0);
|
(gdouble) rt->numerator / ((gdouble) rt->denominator * 3600.0);
|
||||||
|
|
||||||
|
@ -1052,21 +1055,24 @@ metadatamux_exif_for_each_tag_in_list (const GstTagList * list,
|
||||||
/* DDD - degrees */
|
/* DDD - degrees */
|
||||||
rt->numerator = (gulong) v;
|
rt->numerator = (gulong) v;
|
||||||
rt->denominator = 1;
|
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;
|
v -= rt->numerator;
|
||||||
rt++;
|
rt++;
|
||||||
|
|
||||||
/* MM - minutes */
|
/* MM - minutes */
|
||||||
rt->numerator = (gulong) (v * 60.0);
|
rt->numerator = (gulong) (v * 60.0);
|
||||||
rt->denominator = 1;
|
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);
|
v -= ((gdouble) rt->numerator / 60.0);
|
||||||
rt++;
|
rt++;
|
||||||
|
|
||||||
/* SS - seconds */
|
/* SS - seconds */
|
||||||
rt->numerator = (gulong) (0.5 + v * 3600.0);
|
rt->numerator = (gulong) (0.5 + v * 3600.0);
|
||||||
rt->denominator = 1;
|
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) {
|
if (entry->tag == EXIF_TAG_GPS_LONGITUDE) {
|
||||||
GST_DEBUG ("longitude : %lf", value);
|
GST_DEBUG ("longitude : %lf", value);
|
||||||
|
|
Loading…
Reference in a new issue