tools: remove pointless get_state() in gst-launch

State changes to NULL state are always sync.
This commit is contained in:
Tim-Philipp Müller 2012-06-20 12:53:04 +01:00
parent 42fab9db45
commit a2cc2b5af2

View file

@ -1161,7 +1161,6 @@ main (int argc, char *argv[])
end:
PRINT (_("Setting pipeline to NULL ...\n"));
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_element_get_state (pipeline, &state, &pending, GST_CLOCK_TIME_NONE);
}
PRINT (_("Freeing pipeline ...\n"));