Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Gstreamer encounted a general stream error

Gstreamer encounted a general stream error

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 475 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    helthans
    wrote on last edited by
    #1

    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:

    @
    try {
    m_player->play();
    }
    catch {
    qDebug() << "PLAYER ERROR";
    }
    @

    but that isn't enough.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved