summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-03-29 13:12:34 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-03-29 16:56:02 +0100
commitbf8a4143e6879825751843c265cc2d93c472d75b (patch)
tree487a826762b8e841e2f246f3b9d4dfb2c947e3d6 /lib
parent00c50b47ec4658757178e577bac1157cf4da7eaf (diff)
Bounce through PAUSED when losing clock
Diffstat (limited to 'lib')
-rw-r--r--lib/insanity-gst/insanitygstpipelinetest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/insanity-gst/insanitygstpipelinetest.c b/lib/insanity-gst/insanitygstpipelinetest.c
index aa62ff6..61e052b 100644
--- a/lib/insanity-gst/insanitygstpipelinetest.c
+++ b/lib/insanity-gst/insanitygstpipelinetest.c
@@ -414,6 +414,10 @@ handle_message (InsanityGstPipelineTest * ptest, GstMessage * message)
ptest->priv->buffering = TRUE;
}
break;
+ case GST_MESSAGE_CLOCK_LOST:
+ gst_element_set_state (GST_ELEMENT (ptest->priv->pipeline), GST_STATE_PAUSED);
+ gst_element_set_state (GST_ELEMENT (ptest->priv->pipeline), GST_STATE_PLAYING);
+ break;
}
default:
break;