import sys
import gst
import gobject


loop = gobject.MainLoop()
pipeline1 = gst.element_factory_make("playbin2")
pipeline2 = gst.element_factory_make("playbin2")

pipeline1.props.uri = sys.argv[-1]
pipeline2.props.uri = sys.argv[-1]

pipeline1.set_state(gst.STATE_PAUSED)
pipeline2.set_state(gst.STATE_PAUSED)


try:
    loop.run()
except:
    pipeline1.set_state(gst.STATE_NULL)
    pipeline2.set_state(gst.STATE_NULL)
