GstVideoPlayerBackend::GstVideoPlayerBackend(QObject *parent) : VideoPlayerBackend(parent), m_pipeline(0), m_videoLink(0), m_sink(0), m_audioLink(0), m_audioQueue(0), m_videoQueue(0), m_videoBuffer(0), m_state(Stopped),m_playbackSpeed(1.0), m_hasAudio(false), m_useHardwareDecoding(false), m_audioDecoder(0) { if (!initGStreamer()) setError(true, bcApp->gstWrapper()->errorMessage()); // not the clearest solution, will be replaced }
VideoPlayerBackend::VideoPlayerBackend(QObject *parent) : QObject(parent), m_pipeline(0), m_videoLink(0), m_sink(0), m_videoBuffer(0), m_state(Stopped), m_playbackSpeed(1.0) { if (!initGStreamer(&m_errorMessage)) setError(true, m_errorMessage); }