play: Improve pipeline states
authorWim Taymans <wtaymans@redhat.com>
Mon, 21 Apr 2014 13:35:32 +0000 (15:35 +0200)
committerWim Taymans <wtaymans@redhat.com>
Mon, 21 Apr 2014 13:40:33 +0000 (15:40 +0200)
commit1c5c49a94ccf180295e7d40bbbdc9fe28ace291f
tree021e9082875ddaedc9667d514827066dd2cd67c6
parentc268eab145726eba73f052fe4b190892197c48fa
play: Improve pipeline states

First set the pipeline to the PAUSED state to check if we are dealing
with a live pipeline or not. Then move to the desired state.

If we don't do this, it is possible that we receive a BUFFERING message
before we know that the pipeline is live and we would set the pipeline
to PAUSED and deadlock.
tools/gst-play.c