summaryrefslogtreecommitdiffstats
path: root/ext/kate/gstkateparse.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-08 12:20:55 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-08 12:49:01 +0100
commit24217ee31a5030f528e13a94233580e86d70baf0 (patch)
tree6ad12532dcc277523d8ab5113fd6e11bd4c1dd85 /ext/kate/gstkateparse.c
parent282479b4434dbfd6541d71a8891943603a12de89 (diff)
downloadgst-plugins-bad-24217ee31a5030f528e13a94233580e86d70baf0.tar.gz
gst-plugins-bad-24217ee31a5030f528e13a94233580e86d70baf0.tar.bz2
gst-plugins-bad-24217ee31a5030f528e13a94233580e86d70baf0.zip
kate: some minor clean-ups
Print flow return as string in log message; if we check the return value of gst_buffer_new_and_alloc() we should use the _try() function that might actually return NULL. Post error message when returning GST_FLOW_ERROR. Use portable GLib macros to print 64-bit integers. Don't use 0LL, that's also not portable (and unneeded here).
Diffstat (limited to 'ext/kate/gstkateparse.c')
-rw-r--r--ext/kate/gstkateparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kate/gstkateparse.c b/ext/kate/gstkateparse.c
index e9bcd5ae..e4a83477 100644
--- a/ext/kate/gstkateparse.c
+++ b/ext/kate/gstkateparse.c
@@ -242,7 +242,7 @@ static GstFlowReturn
gst_kate_parse_push_buffer (GstKateParse * parse, GstBuffer * buf,
gint64 granulepos)
{
- GST_LOG_OBJECT (parse, "granulepos %16llx", granulepos);
+ GST_LOG_OBJECT (parse, "granulepos %16" G_GINT64_MODIFIER "x", granulepos);
if (granulepos < 0) {
/* packets coming not from Ogg won't have a granpos in the offset end,
so we have to synthesize one here - only problem is we don't know
@@ -330,7 +330,7 @@ gst_kate_parse_queue_buffer (GstKateParse * parse, GstBuffer * buf)
/* oggdemux stores the granule pos in the offset end */
granpos = GST_BUFFER_OFFSET_END (buf);
- GST_LOG_OBJECT (parse, "granpos %16llx", granpos);
+ GST_LOG_OBJECT (parse, "granpos %16" G_GINT64_MODIFIER "x", granpos);
g_queue_push_tail (parse->buffer_queue, buf);
#if 1