validate: Avoid depending on Gst 1.4
authorThibault Saunier <tsaunier@gnome.org>
Tue, 12 May 2015 10:04:52 +0000 (12:04 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 14 May 2015 13:56:56 +0000 (15:56 +0200)
Summary: Depends on D117

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D165

validate/gst/validate/gst-validate-scenario.c

index 816de2fe2b7e31b73367724f6a9515702495b6a5..0d87722cf55ff9bf4cdfb37cea197e2a941fb187 100644 (file)
@@ -615,7 +615,8 @@ _execute_pause (GstValidateScenario * scenario, GstValidateAction * action)
   GstClockTime duration = 0;
   GstStateChangeReturn ret;
 
-  gst_structure_get_uint64 (action->structure, "duration", &duration);
+  gst_structure_get (action->structure, "duration", G_TYPE_UINT64, &duration,
+      NULL);
   gst_structure_set (action->structure, "state", G_TYPE_STRING, "paused", NULL);
 
   GST_INFO_OBJECT (scenario, "Pausing for %" GST_TIME_FORMAT,