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>
}
pipeline = gst_parse_launch (pipeline_description, &err);
- if (pipeline == NULL) {
+ if (pipeline == NULL || err) {
if (err) {
dlog_print (DLOG_ERROR, DLOG_TAG,
"Cannot parse and launch the given pipeline = [%s], %s",