[Tizen/API] bugfix when passing a wrong pipeline command
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 8 Apr 2019 04:54:03 +0000 (13:54 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 9 Apr 2019 01:00:04 +0000 (10:00 +0900)
commit546699c3827f6030d80a83f764b68fa4a909c8bb
treeb350076dfbd267b182de604a074c23f3b96c5b22
parentf3b065fc3fbb61abc974eae4b1de839fb97ece5a
[Tizen/API] bugfix when passing a wrong pipeline command

If passing a wrong pipeline command such as non-existent element or
erroneous pipeline, assertion failure occurs in
nns_pipeline_construct(). This is mainly because gst_parse_launch()
could return non-NULL even though the error is set. So this patch checks
both the return value and GError value.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
tizen-api/src/tizen-api-pipeline.c