void MplVideoPlayerBackend::mplayerReady()
{
    qDebug() << this << "mplayer is ready to play\n";

    emit streamsInitialized(true);

    VideoState old = m_state;
    m_state = Playing;
    emit stateChanged(m_state, old);

    m_mplayer->setSpeed(m_playbackSpeed);
}
Esempio n. 2
0
void GstVideoPlayerBackend::demuxerNoMorePads(GstElement *demux)
{
    Q_UNUSED(demux);

    qDebug("gstreamer: no more pads signal");

    /* there are no audio stream. Unlink audio elements from pipepline
     * Without this pipeline hangs waiting for audio stream to show up  */
    if (!m_hasAudio)
        gst_bin_remove_many(GST_BIN(m_pipeline), m_audioQueue, m_audioDecoder, m_audioLink, m_audioResample, m_volumeController, m_audioSink, NULL);

    emit streamsInitialized(m_hasAudio);
}