Commit 5c279f44 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

ext/alsa/: 'Could not open resource for writing' is not an acceptable even...

ext/alsa/: 'Could not open resource for writing' is not an acceptable even less so when we're trying to open it to re...

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (gst_alsasink_open):
* ext/alsa/gstalsasrc.c: (gst_alsasrc_open):
'Could not open resource for writing' is not an acceptable
error message when we can't open the audio device (see #492334),
even less so when we're trying to open it to record something.
parent 63f7f64a
2007-11-03 Tim-Philipp Müller <tim at centricular dot net>
* ext/alsa/gstalsasink.c: (gst_alsasink_open):
* ext/alsa/gstalsasrc.c: (gst_alsasrc_open):
'Could not open resource for writing' is not an acceptable
error message when we can't open the audio device (see #492334),
even less so when we're trying to open it to record something.
2007-11-02 Tim-Philipp Müller <tim at centricular dot net> 2007-11-02 Tim-Philipp Müller <tim at centricular dot net>
   
Patch by: Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com> Patch by: Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
...@@ -645,11 +645,14 @@ gst_alsasink_open (GstAudioSink * asink) ...@@ -645,11 +645,14 @@ gst_alsasink_open (GstAudioSink * asink)
open_error: open_error:
{ {
if (err == -EBUSY) { if (err == -EBUSY) {
GST_ELEMENT_ERROR (alsa, RESOURCE, BUSY, (NULL), ("Device '%s' is busy", GST_ELEMENT_ERROR (alsa, RESOURCE, BUSY,
alsa->device)); (_("Could not open audio device for playback. "
"Device is being used by another application.")),
("Device '%s' is busy", alsa->device));
} else { } else {
GST_ELEMENT_ERROR (alsa, RESOURCE, OPEN_WRITE, GST_ELEMENT_ERROR (alsa, RESOURCE, OPEN_WRITE,
(NULL), ("Playback open error on device '%s': %s", alsa->device, (_("Could not open audio device for playback.")),
("Playback open error on device '%s': %s", alsa->device,
snd_strerror (err))); snd_strerror (err)));
} }
return FALSE; return FALSE;
......
...@@ -622,11 +622,14 @@ gst_alsasrc_open (GstAudioSrc * asrc) ...@@ -622,11 +622,14 @@ gst_alsasrc_open (GstAudioSrc * asrc)
open_error: open_error:
{ {
if (err == -EBUSY) { if (err == -EBUSY) {
GST_ELEMENT_ERROR (alsa, RESOURCE, BUSY, (NULL), ("Device '%s' is busy", GST_ELEMENT_ERROR (alsa, RESOURCE, BUSY,
alsa->device)); (_("Could not open audio device for recording. "
"Device is being used by another application.")),
("Device '%s' is busy", alsa->device));
} else { } else {
GST_ELEMENT_ERROR (alsa, RESOURCE, OPEN_WRITE, GST_ELEMENT_ERROR (alsa, RESOURCE, OPEN_READ,
(NULL), ("Recording open error on device '%s': %s", alsa->device, (_("Could not open audio device for recording.")),
("Recording open error on device '%s': %s", alsa->device,
snd_strerror (err))); snd_strerror (err)));
} }
return FALSE; return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment