summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/dvdspu/gstspu-pgs.c14
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);
}