Opened 14 years ago

Last modified 13 years ago

#1722 new defect

The -cache option does not work with radio://xxx/capture URLs

Reported by: mplayer.hu@… Owned by: reimar
Priority: normal Component: streaming
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

When playing radio://xxx/capture URLs adding the -cache option produces unexpected results.

Steps to reproduce:
mplayer -cache 1024 radio://92.6/capture

Expected results:
Tune the radio card to 92.6 Mhz and stream audio data from the radio card to the sound card with a 1024 KB cache. (Avoiding the use of a cable from radio out to sound card line-in)

Actual results:
mplayer creates two sub-processes to stream data from the radio card to the sound card. The sound is grumbled. When quiting mplayer one of these sub-processes continues running.

Sample output:

jupiter: ~# mplayer -cache 1024 radio://92.6/capture
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not open config files /root/.lircrc and /etc/lirclirc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing radio://92.6/capture.
[radio] Using V4Lv2 radio interface.
[radio] Radio frequency parameter detected.
[radio] Using frequency: 92.60.
Cache fill: 40.00% (352256 bytes)
Cache fill: 0.00% (0 bytes)
Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!
Cache fill: 0.78% (8192 bytes)
Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!
Cache fill: 2.34% (24576 bytes)
Error reading audio: Broken pipe
ALSA read/write errorFatal error, cannot recover!

Attachments (1)

trunk.patch (1020 bytes ) - added by mplayer.hu@… 14 years ago.
Proposed fix

Download all attachments as: .zip

Change History (3)

by mplayer.hu@…, 14 years ago

Attachment: trunk.patch added

Proposed fix

comment:1 by mplayer.hu@…, 14 years ago

Proposed fix

comment:2 by compn, 13 years ago

Owner: changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.