diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-02-02 17:23:33 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-02-02 17:23:33 +0000 |
commit | 7fa1c523010e5d29ed1c187baeeb209dde4c9fda (patch) | |
tree | db3128f614eff47d9f1a5c9d569ddc3aa829f30c /sys/dxr3 | |
parent | 921fe7a35f7829850e4609b9ece9d4ed72fae813 (diff) | |
download | gst-plugins-bad-7fa1c523010e5d29ed1c187baeeb209dde4c9fda.tar.gz gst-plugins-bad-7fa1c523010e5d29ed1c187baeeb209dde4c9fda.tar.bz2 gst-plugins-bad-7fa1c523010e5d29ed1c187baeeb209dde4c9fda.zip |
change NULL to (NULL) for GST_ELEMENT_ERROR
Original commit message from CVS:
change NULL to (NULL) for GST_ELEMENT_ERROR
Make sure errors end with "."
Diffstat (limited to 'sys/dxr3')
-rw-r--r-- | sys/dxr3/dxr3audiosink.c | 14 | ||||
-rw-r--r-- | sys/dxr3/dxr3spusink.c | 9 | ||||
-rw-r--r-- | sys/dxr3/dxr3videosink.c | 10 |
3 files changed, 17 insertions, 16 deletions
diff --git a/sys/dxr3/dxr3audiosink.c b/sys/dxr3/dxr3audiosink.c index 362ed17a..0bde9e35 100644 --- a/sys/dxr3/dxr3audiosink.c +++ b/sys/dxr3/dxr3audiosink.c @@ -311,7 +311,7 @@ dxr3audiosink_open (Dxr3AudioSink *sink) sink->audio_fd = open (sink->audio_filename, O_WRONLY); if (sink->audio_fd < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, - (_("Could not open audio device \"%s\" for writing"), sink->audio_filename), + (_("Could not open audio device \"%s\" for writing."), sink->audio_filename), GST_ERROR_SYSTEM); return FALSE; } @@ -323,7 +323,7 @@ dxr3audiosink_open (Dxr3AudioSink *sink) sink->control_fd = open (sink->control_filename, O_WRONLY); if (sink->control_fd < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, - (_("Could not open control device \"%s\" for writing"), sink->control_filename), + (_("Could not open control device \"%s\" for writing."), sink->control_filename), GST_ERROR_SYSTEM); return FALSE; } @@ -357,7 +357,7 @@ dxr3audiosink_set_mode_pcm (Dxr3AudioSink *sink) if (ioctl (sink->audio_fd, SNDCTL_DSP_SETFMT, &tmp) < 0 || tmp != oss_mode) { GST_ELEMENT_ERROR (sink, RESOURCE, SETTINGS, - (_("Could not configure audio device \"%s\""), sink->audio_filename), + (_("Could not configure audio device \"%s\"."), sink->audio_filename), GST_ERROR_SYSTEM); return FALSE; } @@ -371,7 +371,7 @@ dxr3audiosink_set_mode_pcm (Dxr3AudioSink *sink) tmp = sink->rate; if (ioctl (sink->audio_fd, SNDCTL_DSP_SPEED, &tmp) < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, SETTINGS, - (_("Could not set audio device \"%s\" to %d Hz"), sink->audio_filename, sink->rate), + (_("Could not set audio device \"%s\" to %d Hz."), sink->audio_filename, sink->rate), GST_ERROR_SYSTEM); return FALSE; } @@ -408,7 +408,7 @@ dxr3audiosink_set_mode_ac3 (Dxr3AudioSink *sink) if (ioctl (sink->audio_fd, SNDCTL_DSP_SPEED, &tmp) < 0 || tmp != AC3_BYTE_RATE) { GST_ELEMENT_ERROR (sink, RESOURCE, SETTINGS, - (_("Could not set audio device \"%s\" to %d Hz"), sink->audio_filename, AC3_BYTE_RATE), + (_("Could not set audio device \"%s\" to %d Hz."), sink->audio_filename, AC3_BYTE_RATE), GST_ERROR_SYSTEM); return FALSE; } @@ -436,14 +436,14 @@ dxr3audiosink_close (Dxr3AudioSink *sink) if (close (sink->audio_fd) != 0) { GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE, - (_("Could not close audio device \"%s\""), sink->audio_filename), + (_("Could not close audio device \"%s\"."), sink->audio_filename), GST_ERROR_SYSTEM); return; } if (close (sink->control_fd) != 0) { GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE, - (_("Could not close control device \"%s\""), sink->audio_filename), + (_("Could not close control device \"%s\"."), sink->audio_filename), GST_ERROR_SYSTEM); return; } diff --git a/sys/dxr3/dxr3spusink.c b/sys/dxr3/dxr3spusink.c index e34e56e9..2b4cf1e8 100644 --- a/sys/dxr3/dxr3spusink.c +++ b/sys/dxr3/dxr3spusink.c @@ -282,7 +282,7 @@ dxr3spusink_open (Dxr3SpuSink *sink) sink->spu_fd = open (sink->spu_filename, O_WRONLY); if (sink->spu_fd < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, - (_("Could not open spu device \"%s\" for writing"), sink->spu_filename), GST_ERROR_SYSTEM); + (_("Could not open spu device \"%s\" for writing."), sink->spu_filename), GST_ERROR_SYSTEM); return FALSE; } @@ -293,7 +293,8 @@ dxr3spusink_open (Dxr3SpuSink *sink) sink->control_fd = open (sink->control_filename, O_WRONLY); if (sink->control_fd < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, - (_("Could not open control device \"%s\" for writing"), sink->control_filename), GST_ERROR_SYSTEM); + (_("Could not open control device \"%s\" for writing."), sink->control_filename), + GST_ERROR_SYSTEM); return FALSE; } @@ -310,7 +311,7 @@ dxr3spusink_close (Dxr3SpuSink *sink) if (close (sink->spu_fd) != 0) { GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE, - (_("Could not close spu device \"%s\""), sink->spu_filename), + (_("Could not close spu device \"%s\"."), sink->spu_filename), GST_ERROR_SYSTEM); return; } @@ -318,7 +319,7 @@ dxr3spusink_close (Dxr3SpuSink *sink) if (close (sink->control_fd) != 0) { GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE, - (_("Could not close control device \"%s\""), sink->control_filename), + (_("Could not close control device \"%s\"."), sink->control_filename), GST_ERROR_SYSTEM); return; } diff --git a/sys/dxr3/dxr3videosink.c b/sys/dxr3/dxr3videosink.c index 36ce36dd..a87a94d8 100644 --- a/sys/dxr3/dxr3videosink.c +++ b/sys/dxr3/dxr3videosink.c @@ -278,7 +278,7 @@ dxr3videosink_open (Dxr3VideoSink *sink) sink->video_fd = open (sink->video_filename, O_WRONLY); if (sink->video_fd < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, - (_("Could not open video device \"%s\" for writing"), sink->video_filename), + (_("Could not open video device \"%s\" for writing."), sink->video_filename), GST_ERROR_SYSTEM); return FALSE; } @@ -290,7 +290,7 @@ dxr3videosink_open (Dxr3VideoSink *sink) sink->control_fd = open (sink->control_filename, O_WRONLY); if (sink->control_fd < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, - (_("Could not open control device \"%s\" for writing"), sink->control_filename), + (_("Could not open control device \"%s\" for writing."), sink->control_filename), GST_ERROR_SYSTEM); return FALSE; } @@ -309,7 +309,7 @@ dxr3videosink_close (Dxr3VideoSink *sink) if (close (sink->video_fd) != 0) { GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE, - (_("Could not close video device \"%s\""), sink->video_filename), + (_("Could not close video device \"%s\"."), sink->video_filename), GST_ERROR_SYSTEM); return; } @@ -317,7 +317,7 @@ dxr3videosink_close (Dxr3VideoSink *sink) if (close (sink->control_fd) != 0) { GST_ELEMENT_ERROR (sink, RESOURCE, CLOSE, - (_("Could not close control device \"%s\""), sink->control_filename), + (_("Could not close control device \"%s\"."), sink->control_filename), GST_ERROR_SYSTEM); return; } @@ -465,7 +465,7 @@ dxr3videosink_write_data (Dxr3VideoSink *sink, guint cut) written = write (sink->video_fd, data, size); if (written < 0) { GST_ELEMENT_ERROR (sink, RESOURCE, WRITE, - (_("Could not write to device \"%s\""), sink->video_filename), + (_("Could not write to device \"%s\"."), sink->video_filename), GST_ERROR_SYSTEM); break; } |