Gstreamer encounted a general stream error
I have a audioplayer which currently repeats the same 3 songs. It can play fine for hours, days or week, but in some odd occasions I get the following error message: "Error: Gstreamer encounted a general stream error" and application stops playing :(
Does anyone know if it is possible to capture this error in Qt, such I can do some appropriate actions instead of the player just stop playing?
In my code I have
m_player = new QMediaPlayer(this);
... and in the function which starts the player, I have tried with a try-catch statement:
qDebug() << "PLAYER ERROR";
but that isn't enough.