validate-scenario: get duration from media_info if not able to query
authorVineeth T M <vineeth.tm@samsung.com>
Fri, 17 Jul 2015 14:42:22 +0000 (23:42 +0900)
committerLuis de Bethencourt <luis@debethencourt.com>
Wed, 22 Jul 2015 15:46:43 +0000 (16:46 +0100)
commit7e91f73c76d39dacdce26e0a509523e0014123b7
tree4dee1ebe2e3f86b2e7e833089370e493bd215d8d
parentaa6aebe41e85f2e6b65af5af70d2ddffe0731f9a
validate-scenario: get duration from media_info if not able to query

In case of files, which don't have duration in header, baseparse
estimates the duration only after 1.5 seconds. But Async_done event
is sent before the duration is estimated, which results in error.
If duration query fails, getting the duration from the media-info being
passed through --set-media-info. If media-info is also not set,
printing an error message and throwing error.

https://bugzilla.gnome.org/show_bug.cgi?id=752521
validate/gst/validate/gst-validate-scenario.c