Commit 531a06e7 authored by Michael Pyne's avatar Michael Pyne

Implement pausing and resuming of playback with gstreamer-0.8.

svn path=/trunk/kdemultimedia/juk/; revision=360613
parent 6df1434e
......@@ -54,8 +54,11 @@ GStreamerPlayer::~GStreamerPlayer()
void GStreamerPlayer::play(const FileHandle &file)
{
stop();
g_object_set(G_OBJECT(m_source), "location", file.absFilePath().utf8().data(), 0);
if(!file.isNull()) {
stop();
g_object_set(G_OBJECT(m_source), "location", file.absFilePath().utf8().data(), 0);
}
gst_element_set_state(m_pipeline, GST_STATE_PLAYING);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment