Skip to content

SDL is unable to stream different audio files #3603

@dboltovskyi

Description

@dboltovskyi

Bug Report

SDL is unable to stream different audio files.
1st file can be streamed successfully however there are errors with subsequent ones.

Reproduction Steps
  1. Make sure AudioStreamConsumer = socket in .INI file
  2. Register and activate NAVI app
  3. Start Audio service
  4. Start streaming 1st file and wait until streaming is finished
  5. Start streaming 2nd file (or the same file one more time)

For steps 4 and 5 check file is playing correctly using GStreamer:

gst-launch-1.0 souphttpsrc location=http://0.0.0.0:5080 ! audio/x-raw,format=S16LE,rate=16000,channels=1 ! pulsesink
Expected Behavior

File has played successfully with appropriate duration.

Observed Behavior

File can't be played due to errors observed in GS:

ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0:
streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0: Could not establish connection to server.
Additional debug info:
gstsouphttpsrc.c(1375): gst_soup_http_src_parse_status (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc0:
Could not connect: Connection refused (4), URL: http://0.0.0.0:5080, Redirect to: (NULL)
ERROR: pipeline doesn't want to preroll.

Only restart of the Audio service helps to play 2nd file

OS & Version Information
Test Case, Sample Code, and / or Example App

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions