MCPcopy Create free account
hub / github.com/GStreamer/gst-python / main

Function main

old_examples/remuxer.py:818–837  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

816 return True
817
818def main(args):
819 def usage():
820 sys.stderr.write("usage: %s [URI-OF-MEDIA-FILE]\n" % args[0])
821 return 1
822
823 w = PlayerWindow()
824 w.show()
825
826 if len(args) == 1:
827 if not w.do_choose_file():
828 return 1
829 elif len(args) == 2:
830 if not gst.uri_is_valid(args[1]):
831 sys.stderr.write("Error: Invalid URI: %s\n" % args[1])
832 return 1
833 w.load_file(args[1])
834 else:
835 return usage()
836
837 gtk.main()
838
839if __name__ == '__main__':
840 sys.exit(main(sys.argv))

Callers 1

remuxer.pyFile · 0.70

Calls 4

do_choose_fileMethod · 0.95
load_fileMethod · 0.95
PlayerWindowClass · 0.70
usageFunction · 0.70

Tested by

no test coverage detected