validate: media-check: Pass NULL instead of GError if not using it

If not using the GError being passed on to media descriptor, writer and parser,
simply pass NULL instead of GError.

https://bugzilla.gnome.org/show_bug.cgi?id=753340
This commit is contained in:
Vineeth TM 2015-08-17 10:40:22 +09:00 committed by Thibault Saunier
parent 15c87003b8
commit e1c1c45eb8

View file

@ -98,7 +98,7 @@ main (int argc, gchar ** argv)
runner = gst_validate_runner_new ();
writer =
gst_media_descriptor_writer_new_discover (runner, argv[1], full, TRUE,
&err);
NULL);
if (writer == NULL) {
g_print ("Could not discover file: %s\n", argv[1]);
ret = 1;
@ -113,7 +113,7 @@ main (int argc, gchar ** argv)
}
if (expected_file) {
reference = gst_media_descriptor_parser_new (runner, expected_file, &err);
reference = gst_media_descriptor_parser_new (runner, expected_file, NULL);
if (reference == NULL) {
g_print ("Could not parse file: %s\n", expected_file);