mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
gstspu: Fix compiler warnings on OS/X
Fix some warnings for format string args and uninitialized vars on OS/X Fixes: #584164 Signed-off-by: Jan Schmidt <thaytan@noraisin.net>
This commit is contained in:
parent
f7f056c6b2
commit
530377c40f
1 changed files with 10 additions and 4 deletions
|
@ -134,6 +134,9 @@ dump_rle_data (GstDVDSpu * dvdspu, guint8 * data, guint32 len)
|
|||
pal_id = data[2];
|
||||
data += 3;
|
||||
break;
|
||||
default:
|
||||
run_len = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -252,6 +255,9 @@ pgs_composition_object_render (PgsCompositionObject * obj, SpuState * state,
|
|||
pal_id = data[2];
|
||||
data += 3;
|
||||
break;
|
||||
default:
|
||||
run_len = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -436,7 +442,7 @@ parse_presentation_segment (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
|
|||
|
||||
if (payload != end) {
|
||||
GST_ERROR ("PGS Composition Object: %" G_GSSIZE_FORMAT
|
||||
" bytes not consumed", end - payload);
|
||||
" bytes not consumed", (gssize) (end - payload));
|
||||
dump_bytes (payload, end - payload);
|
||||
}
|
||||
|
||||
|
@ -497,7 +503,7 @@ parse_set_palette (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
|
|||
|
||||
if (payload != end) {
|
||||
GST_ERROR ("PGS Set Palette: %" G_GSSIZE_FORMAT " bytes not consumed",
|
||||
end - payload);
|
||||
(gssize) (end - payload));
|
||||
dump_bytes (payload, end - payload);
|
||||
}
|
||||
|
||||
|
@ -532,7 +538,7 @@ parse_set_window (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
|
|||
|
||||
if (payload != end) {
|
||||
GST_ERROR ("PGS Set Window: %" G_GSSIZE_FORMAT " bytes not consumed",
|
||||
end - payload);
|
||||
(gssize) (end - payload));
|
||||
dump_bytes (payload, end - payload);
|
||||
}
|
||||
|
||||
|
@ -594,7 +600,7 @@ parse_set_object_data (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
|
|||
|
||||
if (payload != end) {
|
||||
GST_ERROR ("PGS Set Object Data: %" G_GSSIZE_FORMAT " bytes not consumed",
|
||||
end - payload);
|
||||
(gssize) (end - payload));
|
||||
dump_bytes (payload, end - payload);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue