summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-05-27 00:51:45 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-05-27 00:51:45 +0100
commit0716d36b13bef1565af62a2d9b053936e03f1d10 (patch)
treec19caec394a0ad56c518135bcabcc9266b8cf1ab /gst
parent35a66554b44f7a4226fde3880b707cf51c6790f1 (diff)
downloadgst-plugins-bad-0716d36b13bef1565af62a2d9b053936e03f1d10.tar.gz
gst-plugins-bad-0716d36b13bef1565af62a2d9b053936e03f1d10.tar.bz2
gst-plugins-bad-0716d36b13bef1565af62a2d9b053936e03f1d10.zip
gstspu: Convert g_warnings to GST_ERROR, and fix format specifiers
Use G_GSSIZE_FORMAT for printing pointer differences, which should work on both 32-bit and 64-bit systems. Use GST_ERROR instead of g_warning for printing messages about unknown packet contents.
Diffstat (limited to 'gst')
-rw-r--r--gst/dvdspu/gstspu-pgs.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gst/dvdspu/gstspu-pgs.c b/gst/dvdspu/gstspu-pgs.c
index d1d4de18..c2ca171c 100644
--- a/gst/dvdspu/gstspu-pgs.c
+++ b/gst/dvdspu/gstspu-pgs.c
@@ -430,12 +430,13 @@ parse_presentation_segment (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
if (obj->flags & ~(PGS_COMPOSITION_OBJECT_FLAG_CROPPED |
PGS_COMPOSITION_OBJECT_FLAG_FORCED))
- g_warning ("PGS Composition Object has unknown flags: 0x%02x",
+ GST_ERROR ("PGS Composition Object has unknown flags: 0x%02x",
obj->flags);
}
if (payload != end) {
- g_warning ("PGS Composition Object: %ld bytes not consumed", end - payload);
+ GST_ERROR ("PGS Composition Object: %" G_GSSIZE_FORMAT
+ " bytes not consumed", end - payload);
dump_bytes (payload, end - payload);
}
@@ -495,7 +496,8 @@ parse_set_palette (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
#endif
if (payload != end) {
- g_warning ("PGS Set Palette: %ld bytes not consumed", end - payload);
+ GST_ERROR ("PGS Set Palette: %" G_GSSIZE_FORMAT " bytes not consumed",
+ end - payload);
dump_bytes (payload, end - payload);
}
@@ -529,7 +531,8 @@ parse_set_window (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
state->pgs.win_h);
if (payload != end) {
- g_warning ("PGS Set Window: %ld bytes not consumed", end - payload);
+ GST_ERROR ("PGS Set Window: %" G_GSSIZE_FORMAT " bytes not consumed",
+ end - payload);
dump_bytes (payload, end - payload);
}
@@ -590,7 +593,8 @@ parse_set_object_data (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
dump_rle_data (dvdspu, obj->rle_data, obj->rle_data_size);
if (payload != end) {
- g_warning ("PGS Set Object Data: %ld bytes not consumed", end - payload);
+ GST_ERROR ("PGS Set Object Data: %" G_GSSIZE_FORMAT " bytes not consumed",
+ end - payload);
dump_bytes (payload, end - payload);
}
@@ -642,7 +646,7 @@ parse_pgs_packet (GstDVDSpu * dvdspu, guint8 type, guint8 * payload,
pgs_state->in_presentation_segment = FALSE;
break;
default:
- g_warning ("Unknown PGS command: type 0x%02x len %u", type, len);
+ GST_ERROR ("Unknown PGS command: type 0x%02x len %u", type, len);
dump_bytes (payload, len);
break;
}