if (sink->file == NULL) {
perror ("open");
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error opening file \"",
- gst_filesink_getcurrentfilename(sink), "\": ", sys_errlist[errno], NULL));
+ gst_filesink_getcurrentfilename(sink), "\": ", g_strerror(errno), NULL));
return FALSE;
}
{
perror ("close");
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error closing file \"",
- gst_filesink_getcurrentfilename(sink), "\": ", sys_errlist[errno], NULL));
+ gst_filesink_getcurrentfilename(sink), "\": ", g_strerror(errno), NULL));
}
else {
GST_FLAG_UNSET (sink, GST_FILESINK_OPEN);
if (fflush(filesink->file))
gst_element_error(GST_ELEMENT(filesink),
"Error flushing the buffer cache of file \'%s\' to disk: %s",
- gst_filesink_getcurrentfilename(filesink), sys_errlist[errno]);
+ gst_filesink_getcurrentfilename(filesink), g_strerror(errno));
if (GST_EVENT_SEEK_FORMAT (event) != GST_FORMAT_BYTES) {
g_warning("Any other then byte-offset seeking is not supported!\n");
if (fflush(filesink->file))
gst_element_error(GST_ELEMENT(filesink),
"Error flushing the buffer cache of file \'%s\' to disk: %s",
- gst_filesink_getcurrentfilename(filesink), sys_errlist[errno]);
+ gst_filesink_getcurrentfilename(filesink), g_strerror(errno));
break;
default:
gst_pad_event_default (pad, event);
if (sink->file == NULL) {
perror ("open");
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error opening file \"",
- gst_filesink_getcurrentfilename(sink), "\": ", sys_errlist[errno], NULL));
+ gst_filesink_getcurrentfilename(sink), "\": ", g_strerror(errno), NULL));
return FALSE;
}
{
perror ("close");
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error closing file \"",
- gst_filesink_getcurrentfilename(sink), "\": ", sys_errlist[errno], NULL));
+ gst_filesink_getcurrentfilename(sink), "\": ", g_strerror(errno), NULL));
}
else {
GST_FLAG_UNSET (sink, GST_FILESINK_OPEN);
if (fflush(filesink->file))
gst_element_error(GST_ELEMENT(filesink),
"Error flushing the buffer cache of file \'%s\' to disk: %s",
- gst_filesink_getcurrentfilename(filesink), sys_errlist[errno]);
+ gst_filesink_getcurrentfilename(filesink), g_strerror(errno));
if (GST_EVENT_SEEK_FORMAT (event) != GST_FORMAT_BYTES) {
g_warning("Any other then byte-offset seeking is not supported!\n");
if (fflush(filesink->file))
gst_element_error(GST_ELEMENT(filesink),
"Error flushing the buffer cache of file \'%s\' to disk: %s",
- gst_filesink_getcurrentfilename(filesink), sys_errlist[errno]);
+ gst_filesink_getcurrentfilename(filesink), g_strerror(errno));
break;
default:
gst_pad_event_default (pad, event);