mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mms: printf format fixes
This commit is contained in:
parent
f6acdfde66
commit
1fa5e7b89a
1 changed files with 6 additions and 7 deletions
|
@ -288,8 +288,8 @@ gst_mms_do_seek (GstBaseSrc * src, GstSegment * segment)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
start = mmsx_get_current_pos (mmssrc->connection);
|
start = mmsx_get_current_pos (mmssrc->connection);
|
||||||
GST_LOG_OBJECT (mmssrc, "sought to %f sec, offset after seek: %lld\n",
|
GST_INFO_OBJECT (mmssrc, "sought to %" GST_TIME_FORMAT ", offset after "
|
||||||
(double) segment->start / GST_SECOND, start);
|
"seek: %" G_GINT64_FORMAT, GST_TIME_ARGS (segment->start), start);
|
||||||
} else if (segment->format == GST_FORMAT_BYTES) {
|
} else if (segment->format == GST_FORMAT_BYTES) {
|
||||||
start = mmsx_seek (NULL, mmssrc->connection, segment->start, SEEK_SET);
|
start = mmsx_seek (NULL, mmssrc->connection, segment->start, SEEK_SET);
|
||||||
/* mmsx_seek will close and reopen the connection when seeking with the
|
/* mmsx_seek will close and reopen the connection when seeking with the
|
||||||
|
@ -298,12 +298,11 @@ gst_mms_do_seek (GstBaseSrc * src, GstSegment * segment)
|
||||||
GST_DEBUG_OBJECT (mmssrc, "connection broken during seek");
|
GST_DEBUG_OBJECT (mmssrc, "connection broken during seek");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
GST_DEBUG_OBJECT (mmssrc,
|
GST_INFO_OBJECT (mmssrc, "sought to: %" G_GINT64_FORMAT " bytes, "
|
||||||
"sought to: %" G_GINT64_FORMAT " bytes, result: %lld", segment->start,
|
"result: %" G_GINT64_FORMAT, segment->start, start);
|
||||||
start);
|
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (mmssrc, "unsupported seek segment format: %d",
|
GST_DEBUG_OBJECT (mmssrc, "unsupported seek segment format: %s",
|
||||||
(int) segment->format);
|
GST_STR_NULL (gst_format_get_name (segment->format)));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
gst_segment_init (segment, GST_FORMAT_BYTES);
|
gst_segment_init (segment, GST_FORMAT_BYTES);
|
||||||
|
|
Loading…
Reference in a new issue