diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2003-07-23 18:37:53 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2003-07-23 18:37:53 +0000 |
commit | e73b1dcf5ee8b47d023e4242fd91f0c5a66d9e34 (patch) | |
tree | 55ee78bd89e1261a70d3758bc3d0f4aa7cac0647 | |
parent | d8652548c3ed8f99c2f7923d44c7da91c295c830 (diff) | |
download | xine-lib-e73b1dcf5ee8b47d023e4242fd91f0c5a66d9e34.tar.gz xine-lib-e73b1dcf5ee8b47d023e4242fd91f0c5a66d9e34.tar.bz2 |
- don't crash when compiled with alsa support and no alsa device is present
for the sound capture (Closes GNOME bugzilla #118026)
CVS patchset: 5209
CVS date: 2003/07/23 18:37:53
-rw-r--r-- | src/input/input_v4l.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_v4l.c b/src/input/input_v4l.c index eb7659e51..aa257d032 100644 --- a/src/input/input_v4l.c +++ b/src/input/input_v4l.c @@ -1067,7 +1067,7 @@ int open_audio_capture_device(v4l_input_plugin_t *this) * too, otherwise we will loose videoframes because we keep on waiting * for an audio fragment */ - PRINT("Audio :( Error opening PCM device %s\n", this->pcm_name); + DBGPRINT("Audio :( Error opening PCM device %s\n", this->pcm_name); this->audio_capture = 0; } @@ -1350,7 +1350,7 @@ static buf_element_t *v4l_plugin_read_block (input_plugin_t *this_gen, ptr = this->video_buf + this->gb_buffers.offsets[this->gb_frame]; buf->pts = get_time(); /* this->stream->xine->clock->get_current_time(this->stream->xine->clock); */ xine_fast_memcpy (buf->content, ptr, this->frame_size); - } else { + } else if (this->audio_capture) { #ifdef HAVE_ALSA /* Record audio */ |