mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
examples/seek: Don't unpause on clock-lost unless playing
If the pipeline is paused by the user, don't pause/unpause on clock-lost.
This commit is contained in:
parent
f9404c0b27
commit
1f454b76cf
1 changed files with 4 additions and 3 deletions
|
@ -2402,9 +2402,10 @@ static void
|
|||
msg_clock_lost (GstBus * bus, GstMessage * message, GstPipeline * data)
|
||||
{
|
||||
g_print ("clock lost! PAUSE and PLAY to select a new clock\n");
|
||||
|
||||
gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
if (state == GST_STATE_PLAYING) {
|
||||
gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_X
|
||||
|
|
Loading…
Reference in a new issue