[haiku-bugs] [Haiku] #15718: Media Kit: "Invalid return value 0 for stream protocol" error when playing wav or ogg file

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 15 Feb 2020 18:10:36 -0000

#15718: Media Kit: "Invalid return value 0 for stream protocol" error when 
playing
wav or ogg file
-----------------------------+------------------------------
 Reporter:  X512             |        Owner:  nobody
     Type:  bug              |       Status:  new
 Priority:  normal           |    Milestone:  Unscheduled
Component:  Kits/Kernel Kit  |      Version:  R1/Development
 Keywords:                   |   Blocked By:
 Blocking:                   |  Has a Patch:  0
 Platform:  All              |
-----------------------------+------------------------------
 This is hrev53868. Reproduced on both x86 and x86_64.

 Steps to reproduce:
 1. Run `media_client play /boot/home/sounds/BeBeep.wav` (BeBeep.wav is
 from BeOS R5 PE).
 2. A lot of `Invalid return value 0 for stream protocol` errors will be
 written to stdout.

 Same effect with MediaPlayer. Mp4 files are playing fine on first time,
 but when opening second time by dropping file `Invalid return value 0 for
 stream protocol` is written to stdout 2 times and glitches appear
 sometimes.

 Stdout of media_client:
 {{{
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 [adpcm_ms @ 0x16dce6d2bc0] Multiple frames in a packet.
 Playing file...
 TimeSourceObjectManager::GetTimeSource, node id 2
 BMediaRoster::Connect calling BBufferProducer::FormatProposal with format
 raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000
 BMediaRoster::Connect calling BBufferConsumer::AcceptFormat with format
 raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000
 BMediaRoster::Connect calling BBufferProducer::PrepareToConnect with
 format raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000
 BMediaRoster::Connect calling BBufferConsumer::Connected() with format
 raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000
 BMediaRoster::Connect calling BBufferProducer::Connect with format
 raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000
    format raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000
    input node(node 3, port 244); source(port 3865, id 0); dest(port 244,
 id 24); fmt(raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000); name(playfile)
    output node(node 28, port 3865); source(port 3865, id 0); dest(port
 244, id 24); fmt(raw_audio;44100;2;0x2;2;0x800;0x0;0;0x0000);
 name(playfile)
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 BMediaTrack::ReadFrames: decoder returned error 0x80004007 (Last buffer)
 Playback finished.
 Invalid return value 0 for stream protocol
 TimeSourceObject::DeleteHook enter
 TimeSourceObjectManager::ObjectDeleted, node id 2
 TimeSourceObject::DeleteHook leave
 }}}
 Stdout of MediaPlayer after dropping file second time:
 {{{
 open playlist item: BeBeep.m4a
 Invalid return value 0 for stream protocol
 Invalid return value 0 for stream protocol
 AudioProducer::_FillNextBuffer() - supplier error -> silence
 _InitFromTrack(): keyframes: 1, frame count: 31744
 BMediaTrack::SeekToTime SeekToFrame, requested 1024, result 1024
 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15718>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts:

  • » [haiku-bugs] [Haiku] #15718: Media Kit: "Invalid return value 0 for stream protocol" error when playing wav or ogg file - Haiku