[media] media: Media Controller fix to not let stream_count go negative
authorShuah Khan <shuahkh@osg.samsung.com>
Sat, 30 Jan 2016 20:10:52 +0000 (18:10 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 15:32:50 +0000 (13:32 -0200)
commit3801bc7d1b8dd70d47a92e58d6fb5653c10b7c95
tree8c4bc1224dd147a9e827dbd2e07027914242e72f
parentd40ec6fdb0b03b7be4c7923a3da0e46bf943740a
[media] media: Media Controller fix to not let stream_count go negative

Change media_entity_pipeline_stop() to not decrement
stream_count of an inactive media pipeline. Doing so,
results in preventing starting the pipeline.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c