mpegtsdemux: Fix various compiler warnings

This commit is contained in:
Sebastian Dröge 2013-03-03 12:30:32 +01:00
parent ac6967a843
commit acacef9fbb
2 changed files with 4 additions and 3 deletions

View file

@ -1491,7 +1491,7 @@ mpegts_base_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
static GstFlowReturn
mpegts_base_scan (MpegTSBase * base)
{
GstFlowReturn ret;
GstFlowReturn ret = GST_FLOW_OK;
GstBuffer *buf = NULL;
guint i;
gboolean done = FALSE;
@ -1598,6 +1598,7 @@ static void
mpegts_base_loop (MpegTSBase * base)
{
GstFlowReturn ret = GST_FLOW_ERROR;
switch (base->mode) {
case BASE_MODE_SCANNING:
/* Find first sync point */

View file

@ -334,7 +334,7 @@ mpegts_parse_pes_header (const guint8 * data, gsize length, PESHeader * res,
if (G_UNLIKELY (length < res->extension_field_length + 1))
goto need_more_data;
GST_LOG ("extension_field_length : %" G_GSSIZE_FORMAT,
GST_LOG ("extension_field_length : %" G_GSIZE_FORMAT,
res->extension_field_length);
if (res->extension_field_length) {
@ -359,7 +359,7 @@ stuffing_byte:
length = origlength - res->header_size;
done_parsing:
GST_DEBUG ("origlength:%" G_GSSIZE_FORMAT ", length:%" G_GSSIZE_FORMAT,
GST_DEBUG ("origlength:%" G_GSIZE_FORMAT ", length:%" G_GSIZE_FORMAT,
origlength, length);
res->header_size = origlength - length;