mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
Convert from sys_errlist[] to g_strerror()
Original commit message from CVS: Convert from sys_errlist[] to g_strerror()
This commit is contained in:
parent
bc43ca26f0
commit
e1b376fb58
2 changed files with 8 additions and 8 deletions
|
@ -241,7 +241,7 @@ gst_filesink_open_file (GstFileSink *sink)
|
||||||
if (sink->file == NULL) {
|
if (sink->file == NULL) {
|
||||||
perror ("open");
|
perror ("open");
|
||||||
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error opening file \"",
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ gst_filesink_close_file (GstFileSink *sink)
|
||||||
{
|
{
|
||||||
perror ("close");
|
perror ("close");
|
||||||
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error closing file \"",
|
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 {
|
else {
|
||||||
GST_FLAG_UNSET (sink, GST_FILESINK_OPEN);
|
GST_FLAG_UNSET (sink, GST_FILESINK_OPEN);
|
||||||
|
@ -286,7 +286,7 @@ gst_filesink_handle_event (GstPad *pad, GstEvent *event)
|
||||||
if (fflush(filesink->file))
|
if (fflush(filesink->file))
|
||||||
gst_element_error(GST_ELEMENT(filesink),
|
gst_element_error(GST_ELEMENT(filesink),
|
||||||
"Error flushing the buffer cache of file \'%s\' to disk: %s",
|
"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) {
|
if (GST_EVENT_SEEK_FORMAT (event) != GST_FORMAT_BYTES) {
|
||||||
g_warning("Any other then byte-offset seeking is not supported!\n");
|
g_warning("Any other then byte-offset seeking is not supported!\n");
|
||||||
|
@ -332,7 +332,7 @@ gst_filesink_handle_event (GstPad *pad, GstEvent *event)
|
||||||
if (fflush(filesink->file))
|
if (fflush(filesink->file))
|
||||||
gst_element_error(GST_ELEMENT(filesink),
|
gst_element_error(GST_ELEMENT(filesink),
|
||||||
"Error flushing the buffer cache of file \'%s\' to disk: %s",
|
"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;
|
break;
|
||||||
default:
|
default:
|
||||||
gst_pad_event_default (pad, event);
|
gst_pad_event_default (pad, event);
|
||||||
|
|
|
@ -241,7 +241,7 @@ gst_filesink_open_file (GstFileSink *sink)
|
||||||
if (sink->file == NULL) {
|
if (sink->file == NULL) {
|
||||||
perror ("open");
|
perror ("open");
|
||||||
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error opening file \"",
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ gst_filesink_close_file (GstFileSink *sink)
|
||||||
{
|
{
|
||||||
perror ("close");
|
perror ("close");
|
||||||
gst_element_error (GST_ELEMENT (sink), g_strconcat("Error closing file \"",
|
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 {
|
else {
|
||||||
GST_FLAG_UNSET (sink, GST_FILESINK_OPEN);
|
GST_FLAG_UNSET (sink, GST_FILESINK_OPEN);
|
||||||
|
@ -286,7 +286,7 @@ gst_filesink_handle_event (GstPad *pad, GstEvent *event)
|
||||||
if (fflush(filesink->file))
|
if (fflush(filesink->file))
|
||||||
gst_element_error(GST_ELEMENT(filesink),
|
gst_element_error(GST_ELEMENT(filesink),
|
||||||
"Error flushing the buffer cache of file \'%s\' to disk: %s",
|
"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) {
|
if (GST_EVENT_SEEK_FORMAT (event) != GST_FORMAT_BYTES) {
|
||||||
g_warning("Any other then byte-offset seeking is not supported!\n");
|
g_warning("Any other then byte-offset seeking is not supported!\n");
|
||||||
|
@ -332,7 +332,7 @@ gst_filesink_handle_event (GstPad *pad, GstEvent *event)
|
||||||
if (fflush(filesink->file))
|
if (fflush(filesink->file))
|
||||||
gst_element_error(GST_ELEMENT(filesink),
|
gst_element_error(GST_ELEMENT(filesink),
|
||||||
"Error flushing the buffer cache of file \'%s\' to disk: %s",
|
"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;
|
break;
|
||||||
default:
|
default:
|
||||||
gst_pad_event_default (pad, event);
|
gst_pad_event_default (pad, event);
|
||||||
|
|
Loading…
Reference in a new issue