Graceful exit when wrong file is fed to muxer. 49/56849/3 accepted/tizen/mobile/20160114.064849 accepted/tizen/tv/20160114.064922 accepted/tizen/wearable/20160114.064942 submit/tizen/20160114.021519
authorMahesh Kondiparthi <kd.mahesh@samsung.com>
Wed, 13 Jan 2016 06:30:32 +0000 (12:00 +0530)
committerMahesh Kondiparthi <kd.mahesh@samsung.com>
Wed, 13 Jan 2016 07:28:30 +0000 (12:58 +0530)
commitbabaf3674c3c5333089be4b48ff6ad3496887753
tree7c6188e7cc6cdc39881d909902a7c620f469f1cd
parentbeb4c8e84be4f3fa8cc3ccc5fe9ba4e21929561c
Graceful exit when wrong file is fed to muxer.

Added null check to output_uri in gst_add_track to return if set_data_sink fails.
Modify mediamuxer to return an error if the media_format during add_track is not matching with media_format of the write_sample packet
Update mediamuxer test-suite to return an error if inappropriate A/V codecs were fed.
Hence, user is restricted to feed a container-file with same encoded-media as what he choose during 'o'
Addressed review comments

Change-Id: Id8f4fe3637564e9957084f77dab5f6d856b4b2f6
Signed-off-by: Mahesh Kondiparthi <kd.mahesh@samsung.com>
src/port_gst/mediamuxer_port_gst.c
test/mediamuxer_test.c
test/mediamuxer_test_gst.c