removing ending punctuation dots

Original commit message from CVS:
removing ending punctuation dots
This commit is contained in:
Thomas Vander Stichele 2004-01-19 11:44:12 +00:00
parent b0a02001fa
commit 853f236b36
12 changed files with 72 additions and 64 deletions

View file

@ -1,3 +1,19 @@
2004-01-19 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gsterror.c: (_gst_core_errors_init),
(_gst_library_errors_init), (_gst_resource_errors_init),
(_gst_stream_errors_init):
remove ending punctuation dots
2004-01-19 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/elements/gstfilesink.c: (gst_filesink_open_file):
* gst/elements/gstfilesrc.c: (gst_filesrc_get_read):
* gst/elements/gstmultidisksrc.c: (gst_multidisksrc_open_file):
* gst/elements/gstpipefilter.c: (gst_pipefilter_get),
(gst_pipefilter_chain), (gst_pipefilter_open_file):
use GST_ERROR_SYSTEM
2004-01-19 Thomas Vander Stichele <thomas at apestaart dot org> 2004-01-19 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstelement.c: (gst_element_error_printf), * gst/gstelement.c: (gst_element_error_printf),

View file

@ -242,7 +242,7 @@ gst_filesink_open_file (GstFileSink *sink)
if (sink->file == NULL) { if (sink->file == NULL) {
gst_element_error (sink, RESOURCE, OPEN_WRITE, gst_element_error (sink, RESOURCE, OPEN_WRITE,
(_("Could not open file \"%s\" for writing"), sink->filename), (_("Could not open file \"%s\" for writing"), sink->filename),
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return FALSE; return FALSE;
} }

View file

@ -642,7 +642,7 @@ gst_filesrc_get_read (GstFileSrc *src)
if (ret < 0){ if (ret < 0){
gst_element_error (src, RESOURCE, READ, gst_element_error (src, RESOURCE, READ,
NULL, NULL,
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return NULL; return NULL;
} }
if (ret < readsize) { if (ret < readsize) {

View file

@ -242,7 +242,7 @@ gboolean gst_multidisksrc_open_file (GstMultiDiskSrc *src, GstPad *srcpad)
if (src->fd < 0) { if (src->fd < 0) {
gst_element_error (src, RESOURCE, OPEN_READ, gst_element_error (src, RESOURCE, OPEN_READ,
(_("Could not open file \"%s\" for reading"), src->currentfilename), (_("Could not open file \"%s\" for reading"), src->currentfilename),
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return FALSE; return FALSE;
} else { } else {

View file

@ -242,7 +242,7 @@ gboolean gst_multidisksrc_open_file (GstMultiDiskSrc *src, GstPad *srcpad)
if (src->fd < 0) { if (src->fd < 0) {
gst_element_error (src, RESOURCE, OPEN_READ, gst_element_error (src, RESOURCE, OPEN_READ,
(_("Could not open file \"%s\" for reading"), src->currentfilename), (_("Could not open file \"%s\" for reading"), src->currentfilename),
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return FALSE; return FALSE;
} else { } else {

View file

@ -169,8 +169,7 @@ gst_pipefilter_get (GstPad *pad)
readbytes = read(pipefilter->fdout[0], GST_BUFFER_DATA(newbuf), pipefilter->bytes_per_read); readbytes = read(pipefilter->fdout[0], GST_BUFFER_DATA(newbuf), pipefilter->bytes_per_read);
GST_DEBUG ("read %ld bytes", readbytes); GST_DEBUG ("read %ld bytes", readbytes);
if (readbytes < 0) { if (readbytes < 0) {
gst_element_error (pipefilter, RESOURCE, READ, gst_element_error (pipefilter, RESOURCE, READ, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return NULL; return NULL;
} }
/* if we didn't get as many bytes as we asked for, we're at EOF */ /* if we didn't get as many bytes as we asked for, we're at EOF */
@ -213,8 +212,7 @@ gst_pipefilter_chain (GstPad *pad,GstData *_data)
writebytes = write(pipefilter->fdin[1],data,size); writebytes = write(pipefilter->fdin[1],data,size);
GST_DEBUG ("written %ld bytes", writebytes); GST_DEBUG ("written %ld bytes", writebytes);
if (writebytes < 0) { if (writebytes < 0) {
gst_element_error (pipefilter, RESOURCE, WRITE, gst_element_error (pipefilter, RESOURCE, WRITE, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return; return;
} }
gst_buffer_unref(buf); gst_buffer_unref(buf);
@ -269,8 +267,7 @@ gst_pipefilter_open_file (GstPipefilter *src)
if((src->childpid = fork()) == -1) if((src->childpid = fork()) == -1)
{ {
gst_element_error (src, RESOURCE, TOO_LAZY, gst_element_error (src, RESOURCE, TOO_LAZY, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return FALSE; return FALSE;
} }
@ -283,8 +280,7 @@ gst_pipefilter_open_file (GstPipefilter *src)
dup2(src->fdout[1], STDOUT_FILENO); /* set the childs output stream */ dup2(src->fdout[1], STDOUT_FILENO); /* set the childs output stream */
execvp(src->command[0], &src->command[0]); execvp(src->command[0], &src->command[0]);
/* will only be reached if execvp has an error */ /* will only be reached if execvp has an error */
gst_element_error (src, RESOURCE, TOO_LAZY, gst_element_error (src, RESOURCE, TOO_LAZY, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return FALSE; return FALSE;
} }

View file

@ -41,30 +41,30 @@ static gchar ** _gst_core_errors_init ()
t = g_new0 (gchar *, GST_CORE_ERROR_NUM_ERRORS); t = g_new0 (gchar *, GST_CORE_ERROR_NUM_ERRORS);
TABLE (t, CORE, FAILED, TABLE (t, CORE, FAILED,
N_("GStreamer encountered a general core library error.")); N_("GStreamer encountered a general core library error"));
TABLE (t, CORE, TOO_LAZY, TABLE (t, CORE, TOO_LAZY,
N_("GStreamer developers were too lazy to assign an error code " N_("GStreamer developers were too lazy to assign an error code "
"to this error. Please file a bug.")); "to this error. Please file a bug"));
TABLE (t, CORE, NOT_IMPLEMENTED, TABLE (t, CORE, NOT_IMPLEMENTED,
N_("Internal GStreamer error: code not implemented. File a bug.")); N_("Internal GStreamer error: code not implemented. File a bug"));
TABLE (t, CORE, STATE_CHANGE, TABLE (t, CORE, STATE_CHANGE,
N_("Internal GStreamer error: state change failed. File a bug.")); N_("Internal GStreamer error: state change failed. File a bug"));
TABLE (t, CORE, PAD, TABLE (t, CORE, PAD,
N_("Internal GStreamer error: pad problem. File a bug.")); N_("Internal GStreamer error: pad problem. File a bug"));
TABLE (t, CORE, THREAD, TABLE (t, CORE, THREAD,
N_("Internal GStreamer error: thread problem. File a bug.")); N_("Internal GStreamer error: thread problem. File a bug"));
TABLE (t, CORE, SCHEDULER, TABLE (t, CORE, SCHEDULER,
N_("Internal GStreamer error: scheduler problem. File a bug.")); N_("Internal GStreamer error: scheduler problem. File a bug"));
TABLE (t, CORE, NEGOTIATION, TABLE (t, CORE, NEGOTIATION,
N_("Internal GStreamer error: negotiation problem. File a bug.")); N_("Internal GStreamer error: negotiation problem. File a bug"));
TABLE (t, CORE, EVENT, TABLE (t, CORE, EVENT,
N_("Internal GStreamer error: event problem. File a bug.")); N_("Internal GStreamer error: event problem. File a bug"));
TABLE (t, CORE, SEEK, TABLE (t, CORE, SEEK,
N_("Internal GStreamer error: seek problem. File a bug.")); N_("Internal GStreamer error: seek problem. File a bug"));
TABLE (t, CORE, CAPS, TABLE (t, CORE, CAPS,
N_("Internal GStreamer error: caps problem. File a bug.")); N_("Internal GStreamer error: caps problem. File a bug"));
TABLE (t, CORE, TAG, TABLE (t, CORE, TAG,
N_("Internal GStreamer error: tag problem. File a bug.")); N_("Internal GStreamer error: tag problem. File a bug"));
return t; return t;
} }
@ -77,16 +77,16 @@ static gchar ** _gst_library_errors_init ()
t = g_new0 (gchar *, GST_LIBRARY_ERROR_NUM_ERRORS); t = g_new0 (gchar *, GST_LIBRARY_ERROR_NUM_ERRORS);
TABLE (t, LIBRARY, FAILED, TABLE (t, LIBRARY, FAILED,
N_("GStreamer encountered a general supporting library error.")); N_("GStreamer encountered a general supporting library error"));
TABLE (t, LIBRARY, TOO_LAZY, TABLE (t, LIBRARY, TOO_LAZY,
N_("GStreamer developers were too lazy to assign an error code " N_("GStreamer developers were too lazy to assign an error code "
"to this error. Please file a bug.")); "to this error. Please file a bug"));
TABLE (t, LIBRARY, INIT, TABLE (t, LIBRARY, INIT,
N_("Could not initialize supporting library.")); N_("Could not initialize supporting library"));
TABLE (t, LIBRARY, SHUTDOWN, TABLE (t, LIBRARY, SHUTDOWN,
N_("Could not close supporting library.")); N_("Could not close supporting library"));
TABLE (t, LIBRARY, SETTINGS, TABLE (t, LIBRARY, SETTINGS,
N_("Could not close supporting library.")); N_("Could not close supporting library"));
return t; return t;
} }
@ -99,32 +99,32 @@ static gchar ** _gst_resource_errors_init ()
t = g_new0 (gchar *, GST_RESOURCE_ERROR_NUM_ERRORS); t = g_new0 (gchar *, GST_RESOURCE_ERROR_NUM_ERRORS);
TABLE (t, RESOURCE, FAILED, TABLE (t, RESOURCE, FAILED,
N_("GStreamer encountered a general supporting library error.")); N_("GStreamer encountered a general supporting library error"));
TABLE (t, RESOURCE, TOO_LAZY, TABLE (t, RESOURCE, TOO_LAZY,
N_("GStreamer developers were too lazy to assign an error code " N_("GStreamer developers were too lazy to assign an error code "
"to this error. Please file a bug.")); "to this error. Please file a bug"));
TABLE (t, RESOURCE, NOT_FOUND, TABLE (t, RESOURCE, NOT_FOUND,
N_("Resource not found.")); N_("Resource not found"));
TABLE (t, RESOURCE, BUSY, TABLE (t, RESOURCE, BUSY,
N_("Resource busy or not available.")); N_("Resource busy or not available"));
TABLE (t, RESOURCE, OPEN_READ, TABLE (t, RESOURCE, OPEN_READ,
N_("Could not open resource for reading.")); N_("Could not open resource for reading"));
TABLE (t, RESOURCE, OPEN_WRITE, TABLE (t, RESOURCE, OPEN_WRITE,
N_("Could not open resource for writing.")); N_("Could not open resource for writing"));
TABLE (t, RESOURCE, OPEN_READ_WRITE, TABLE (t, RESOURCE, OPEN_READ_WRITE,
N_("Could not open resource for reading and writing.")); N_("Could not open resource for reading and writing"));
TABLE (t, RESOURCE, CLOSE, TABLE (t, RESOURCE, CLOSE,
N_("Could not close resource.")); N_("Could not close resource"));
TABLE (t, RESOURCE, READ, TABLE (t, RESOURCE, READ,
N_("Could not read from resource.")); N_("Could not read from resource"));
TABLE (t, RESOURCE, WRITE, TABLE (t, RESOURCE, WRITE,
N_("Could not write to resource.")); N_("Could not write to resource"));
TABLE (t, RESOURCE, SEEK, TABLE (t, RESOURCE, SEEK,
N_("Could not perform seek on resource.")); N_("Could not perform seek on resource"));
TABLE (t, RESOURCE, SYNC, TABLE (t, RESOURCE, SYNC,
N_("Could not synchronize on resource.")); N_("Could not synchronize on resource"));
TABLE (t, RESOURCE, SETTINGS, TABLE (t, RESOURCE, SETTINGS,
N_("Could not get/set settings from/on resource.")); N_("Could not get/set settings from/on resource"));
return t; return t;
} }
@ -137,27 +137,27 @@ static gchar ** _gst_stream_errors_init ()
t = g_new0 (gchar *, GST_STREAM_ERROR_NUM_ERRORS); t = g_new0 (gchar *, GST_STREAM_ERROR_NUM_ERRORS);
TABLE (t, STREAM, FAILED, TABLE (t, STREAM, FAILED,
N_("GStreamer encountered a general supporting library error.")); N_("GStreamer encountered a general supporting library error"));
TABLE (t, STREAM, TOO_LAZY, TABLE (t, STREAM, TOO_LAZY,
N_("GStreamer developers were too lazy to assign an error code " N_("GStreamer developers were too lazy to assign an error code "
"to this error. Please file a bug.")); "to this error. Please file a bug"));
TABLE (t, STREAM, NOT_IMPLEMENTED, TABLE (t, STREAM, NOT_IMPLEMENTED,
N_("Element doesn't implement handling of this stream. " N_("Element doesn't implement handling of this stream. "
"Please file a bug.")); "Please file a bug"));
TABLE (t, STREAM, TYPE_NOT_FOUND, TABLE (t, STREAM, TYPE_NOT_FOUND,
N_("Could not determine type of stream.")); N_("Could not determine type of stream"));
TABLE (t, STREAM, WRONG_TYPE, TABLE (t, STREAM, WRONG_TYPE,
N_("The stream is of a different type than handled by this element.")); N_("The stream is of a different type than handled by this element"));
TABLE (t, STREAM, DECODE, TABLE (t, STREAM, DECODE,
N_("Could not decode stream.")); N_("Could not decode stream"));
TABLE (t, STREAM, ENCODE, TABLE (t, STREAM, ENCODE,
N_("Could not encode stream.")); N_("Could not encode stream"));
TABLE (t, STREAM, DEMUX, TABLE (t, STREAM, DEMUX,
N_("Could not demultiplex stream.")); N_("Could not demultiplex stream"));
TABLE (t, STREAM, MUX, TABLE (t, STREAM, MUX,
N_("Could not multiplex stream.")); N_("Could not multiplex stream"));
TABLE (t, STREAM, FORMAT, TABLE (t, STREAM, FORMAT,
N_("Stream is of the wrong format.")); N_("Stream is of the wrong format"));
return t; return t;
} }

View file

@ -242,7 +242,7 @@ gst_filesink_open_file (GstFileSink *sink)
if (sink->file == NULL) { if (sink->file == NULL) {
gst_element_error (sink, RESOURCE, OPEN_WRITE, gst_element_error (sink, RESOURCE, OPEN_WRITE,
(_("Could not open file \"%s\" for writing"), sink->filename), (_("Could not open file \"%s\" for writing"), sink->filename),
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return FALSE; return FALSE;
} }

View file

@ -642,7 +642,7 @@ gst_filesrc_get_read (GstFileSrc *src)
if (ret < 0){ if (ret < 0){
gst_element_error (src, RESOURCE, READ, gst_element_error (src, RESOURCE, READ,
NULL, NULL,
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return NULL; return NULL;
} }
if (ret < readsize) { if (ret < readsize) {

View file

@ -242,7 +242,7 @@ gboolean gst_multidisksrc_open_file (GstMultiDiskSrc *src, GstPad *srcpad)
if (src->fd < 0) { if (src->fd < 0) {
gst_element_error (src, RESOURCE, OPEN_READ, gst_element_error (src, RESOURCE, OPEN_READ,
(_("Could not open file \"%s\" for reading"), src->currentfilename), (_("Could not open file \"%s\" for reading"), src->currentfilename),
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return FALSE; return FALSE;
} else { } else {

View file

@ -242,7 +242,7 @@ gboolean gst_multidisksrc_open_file (GstMultiDiskSrc *src, GstPad *srcpad)
if (src->fd < 0) { if (src->fd < 0) {
gst_element_error (src, RESOURCE, OPEN_READ, gst_element_error (src, RESOURCE, OPEN_READ,
(_("Could not open file \"%s\" for reading"), src->currentfilename), (_("Could not open file \"%s\" for reading"), src->currentfilename),
("system error: %s", strerror (errno))); GST_ERROR_SYSTEM);
return FALSE; return FALSE;
} else { } else {

View file

@ -169,8 +169,7 @@ gst_pipefilter_get (GstPad *pad)
readbytes = read(pipefilter->fdout[0], GST_BUFFER_DATA(newbuf), pipefilter->bytes_per_read); readbytes = read(pipefilter->fdout[0], GST_BUFFER_DATA(newbuf), pipefilter->bytes_per_read);
GST_DEBUG ("read %ld bytes", readbytes); GST_DEBUG ("read %ld bytes", readbytes);
if (readbytes < 0) { if (readbytes < 0) {
gst_element_error (pipefilter, RESOURCE, READ, gst_element_error (pipefilter, RESOURCE, READ, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return NULL; return NULL;
} }
/* if we didn't get as many bytes as we asked for, we're at EOF */ /* if we didn't get as many bytes as we asked for, we're at EOF */
@ -213,8 +212,7 @@ gst_pipefilter_chain (GstPad *pad,GstData *_data)
writebytes = write(pipefilter->fdin[1],data,size); writebytes = write(pipefilter->fdin[1],data,size);
GST_DEBUG ("written %ld bytes", writebytes); GST_DEBUG ("written %ld bytes", writebytes);
if (writebytes < 0) { if (writebytes < 0) {
gst_element_error (pipefilter, RESOURCE, WRITE, gst_element_error (pipefilter, RESOURCE, WRITE, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return; return;
} }
gst_buffer_unref(buf); gst_buffer_unref(buf);
@ -269,8 +267,7 @@ gst_pipefilter_open_file (GstPipefilter *src)
if((src->childpid = fork()) == -1) if((src->childpid = fork()) == -1)
{ {
gst_element_error (src, RESOURCE, TOO_LAZY, gst_element_error (src, RESOURCE, TOO_LAZY, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return FALSE; return FALSE;
} }
@ -283,8 +280,7 @@ gst_pipefilter_open_file (GstPipefilter *src)
dup2(src->fdout[1], STDOUT_FILENO); /* set the childs output stream */ dup2(src->fdout[1], STDOUT_FILENO); /* set the childs output stream */
execvp(src->command[0], &src->command[0]); execvp(src->command[0], &src->command[0]);
/* will only be reached if execvp has an error */ /* will only be reached if execvp has an error */
gst_element_error (src, RESOURCE, TOO_LAZY, gst_element_error (src, RESOURCE, TOO_LAZY, NULL, GST_ERROR_SYSTEM);
NULL, ("system error: %s", strerror (errno)));
return FALSE; return FALSE;
} }