+2007-03-10 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/avi/gstavidemux.c: (gst_avi_demux_parse_subindex),
+ (gst_avi_demux_parse_index):
+ * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists):
+ * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_grab_frame):
+ Printf format fixes; also add some missing quotes in translated
+ strings. Fixes #416728 and #416727.
+
2007-03-09 Jan Schmidt <thaytan@mad.scientist.com>
* gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_find_best):
out_of_mem:
{
GST_ELEMENT_ERROR (avi, RESOURCE, NO_SPACE_LEFT, (NULL),
- ("Cannot allocate memory for %lu*%lu=%lu bytes",
- sizeof (gst_avi_index_entry), num,
- sizeof (gst_avi_index_entry) * num));
+ ("Cannot allocate memory for %u*%u=%u bytes",
+ (guint) sizeof (gst_avi_index_entry), num,
+ (guint) sizeof (gst_avi_index_entry) * num));
gst_buffer_unref (buf);
return FALSE;
}
n++;
}
- GST_INFO
- ("Parsed index, %6d entries, %5d keyframes, entry size = %2d, total size = %10ld",
- num, _nr_keyframes, sizeof (gst_avi_index_entry),
- num * sizeof (gst_avi_index_entry));
+ GST_INFO ("Parsed index, %6d entries, %5ld keyframes, entry size = %2d, "
+ "total size = %10d", num, _nr_keyframes,
+ (gint) sizeof (gst_avi_index_entry),
+ (gint) (num * sizeof (gst_avi_index_entry)));
gst_buffer_unref (buf);
out_of_mem:
{
GST_ELEMENT_ERROR (avi, RESOURCE, NO_SPACE_LEFT, (NULL),
- ("Cannot allocate memory for %lu*%lu=%lu bytes",
- sizeof (gst_avi_index_entry), num,
- sizeof (gst_avi_index_entry) * num));
+ ("Cannot allocate memory for %u*%u=%u bytes",
+ (guint) sizeof (gst_avi_index_entry), num,
+ (guint) sizeof (gst_avi_index_entry) * num));
gst_buffer_unref (buf);
}
}
vtun.index = input.tuner;
if (ioctl (v4l2object->video_fd, VIDIOC_G_TUNER, &vtun) < 0) {
GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, SETTINGS,
- (_("Failed to get setting of tuner &d on device '%s'."),
+ (_("Failed to get setting of tuner %d on device '%s'."),
input.tuner, v4l2object->videodev), GST_ERROR_SYSTEM);
g_object_unref (G_OBJECT (channel));
return FALSE;
break;
} else {
GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, SETTINGS,
- (_("Failed getting controls attributes on device '%s."),
+ (_("Failed getting controls attributes on device '%s.'"),
v4l2object->videodev),
("Failed querying control %d on device '%s'. (%d - %s)",
n, v4l2object->videodev, errno, strerror (errno)));
break; /* end of enumeration */
else {
GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, SETTINGS,
- (_("Failed getting controls attributes on device '%s."),
+ (_("Failed getting controls attributes on device '%s'."),
v4l2object->videodev),
("Failed to get %d in menu enumeration for %s. (%d - %s)",
n, v4l2object->videodev, errno, strerror (errno)));
while (ioctl (v4l2src->v4l2object->video_fd, VIDIOC_DQBUF, &buffer) < 0) {
GST_LOG_OBJECT (v4l2src,
- "problem grabbing frame %ld (ix=%ld), trials=%ld, pool-ct=%d, buf.flags=%d",
+ "problem grabbing frame %d (ix=%d), trials=%d, pool-ct=%d, buf.flags=%d",
buffer.sequence, buffer.index, trials, v4l2src->pool->refcount,
buffer.flags);
}
}
- GST_LOG_OBJECT (v4l2src, "grabbed frame %ld (ix=%ld), pool-ct=%d",
+ GST_LOG_OBJECT (v4l2src, "grabbed frame %d (ix=%d), pool-ct=%d",
buffer.sequence, buffer.index, v4l2src->pool->refcount);
return buffer.index;