tools: Set pipeline to PAUSED before waiting for main loop idle
authorDavid Schleef <ds@schleef.org>
Tue, 2 Jun 2009 20:45:52 +0000 (13:45 -0700)
committerDavid Schleef <ds@schleef.org>
Tue, 2 Jun 2009 20:49:36 +0000 (13:49 -0700)
commit08fb55c2e1053e19a6c88e365e567d3352e92ee4
tree0fde1736d7ac7f605cc2599193ff76034248fbcd
parent47d9904ebab49e362c464ef48271ebdb54cde94c
tools: Set pipeline to PAUSED before waiting for main loop idle

When it is shutting down a pipeline after ctrl-c, set pipeline to
paused before waiting for the main loop to complete all pending
transactions.  Fixes #584657.

If some part of the pipeline is generating signals or idle functions
at a fast rate, waiting for a main loop iteration may never return.
tools/gst-launch.c