QMediaPlayer running on Raspberry Pi 4 returns CRITICAL gst_alsa_device_new: assertion 'caps' failed
-
Re: [QML MediaPlayer](Raspberry Pi 4. gst_alsa_device_new: assertion 'caps' failed error)
I ran into a similar problem as the referenced post where running a program that worked on x86 now returns this error message once cross-compiled for the RPI:
** (user:10149): CRITICAL**: gst_alsa_device_new: assertion 'caps' failed
Segmentation faultthe code I'm using to try and test audio output:
music_player = new QMediaPlayer(this);
audio_out = new QAudioOutput(this);
music_player->setAudioOutput(audio_out);
music_player->setSource(QUrl::fromLocalFile("/home...");
audio_out->setVolume(100);
music_player->play();Is this a problem with the gstreamer backend? Not quite sure why this doesn't work with all the prerequisite packages installed for qt multimedia. If anyone has any insight please reach out!! Apologies if anything isn't formatted correctly, I'm new to the forums and trying to learn.