[media] media: Keep using the same graph walk object for a given pipeline

Initialise a given graph walk object once, and then keep using it whilst
the same pipeline is running. Once the pipeline is stopped, release the
graph walk object.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
Sakari Ailus
2015-12-16 11:32:29 -02:00
committed by Mauro Carvalho Chehab
parent 29d8da02d1
commit 74a4133079
2 changed files with 14 additions and 7 deletions

View File

@@ -119,9 +119,11 @@ struct media_entity_graph {
/*
* struct media_pipeline - Media pipeline related information
*
* @graph: Media graph walk during pipeline start / stop
* @streaming_count: Streaming start count - streaming stop count
* @graph: Media graph walk during pipeline start / stop
*/
struct media_pipeline {
int streaming_count;
struct media_entity_graph graph;
};