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 377d2363ce
commit fe83d4aa6a

View file

@ -1251,7 +1251,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"));