Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

"MediaPlayerTest" running error #18

Closed
boyce-xx opened this issue Jun 6, 2017 · 3 comments
Closed

"MediaPlayerTest" running error #18

boyce-xx opened this issue Jun 6, 2017 · 3 comments
Milestone

Comments

@boyce-xx
Copy link

boyce-xx commented Jun 6, 2017

Hi, I can build MediaPlayer successfully, but I got an error when running the test app:

./MediaPlayerTest ../../../alexa-client-sdk-master/MediaPlayer/inputs/

error msg is:

[==========] Running 7 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 7 tests from MediaPlayerTest
[ RUN ] MediaPlayerTest.testStartPlayWaitForEnd
MediaPlayer:handleSetObserverCalled
MediaPlayer:handleSetSourceCalled
MediaPlayer:doStopSuccess:reason=alreadyStopped
MediaPlayer:handlePlayCalled
MediaPlayer:doStopSuccess:reason=alreadyStopped
MediaPlayer:handleBusMessageError:source=decoder,error=Your GStreamer installation is missing a plug-in.
MediaPlayer:callingOnPlaybackError:error=Your GStreamer installation is missing a plug-in.
Error encountered:Your GStreamer installation is missing a plug-in.

MediaPlayer:handleBusMessageError:source=src,error=Internal data stream error.
MediaPlayer:callingOnPlaybackError:error=Internal data stream error.
Error encountered:Internal data stream error.
/home/bob/Desktop/Document/TeddyBear/AVS/Linux+C/0.4/SDK/20170602_gst/alexa-client-sdk-master/MediaPlayer/test/MediaPlayerTest.cpp:295: Failure
Value of: m_playerObserver->waitForPlaybackStarted()
Actual: false
Expected: true
MediaPlayer:handleStopCalled
MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
(MediaPlayerTest:4644): GStreamer-CRITICAL **:
Trying to dispose element audio_sink, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

please suggest, thanks.

@JamieMeyers
Copy link
Contributor

Hi @boyce-xx,

It looks like not all systems using GStreamer and GStreamer Plugins Base and Good will have a decoder that will work for your system. Can you try also installing GStreamer libav and/or GStreamer Plugins Ugly to get it to work.

Please note GStreamer Plugins Ugly might have distribution, licensing, or patent problems.

Please let us know the results. Given that the list of plugins and elements doesn't show an MP3 decoder in good or base plugins, we'll likely update the README to include this information.

Thanks,
Jamie

@boyce-xx
Copy link
Author

boyce-xx commented Jun 7, 2017

Hi @JamieMeyers , follow your suggestions, it works now.
thank you.

@boyce-xx boyce-xx closed this as completed Jun 8, 2017
@JamieMeyers
Copy link
Contributor

We've clarified this in the 0.4.1 README as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants