diff options
author | Tristan Matthews <le.businessman@gmail.com> | 2009-05-28 23:08:17 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-05-28 23:11:38 +0100 |
commit | 530377c40f1586378b1fc34be4b5f99b92108078 (patch) | |
tree | 6043095fba7d4701cd34d896c924f42fdddd76af /gst | |
parent | f7f056c6b2fd1e7e997ad417d70756eb66c0d9d2 (diff) | |
download | gst-plugins-bad-530377c40f1586378b1fc34be4b5f99b92108078.tar.gz gst-plugins-bad-530377c40f1586378b1fc34be4b5f99b92108078.tar.bz2 gst-plugins-bad-530377c40f1586378b1fc34be4b5f99b92108078.zip |
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>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/dvdspu/gstspu-pgs.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gst/dvdspu/gstspu-pgs.c b/gst/dvdspu/gstspu-pgs.c index c2ca171c..37d80236 100644 --- a/gst/dvdspu/gstspu-pgs.c +++ b/gst/dvdspu/gstspu-pgs.c @@ -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); } |