mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
15c87003b8
commit
e1c1c45eb8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue