diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2015-12-16 11:32:29 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 12:19:20 -0200 |
commit | 74a4133079f739eb2f4604263fdb974ce10120a8 (patch) | |
tree | 4ac54a75024a8316f7c5427224d27f69923024e4 /include/media/media-entity.h | |
parent | 29d8da02d13020a18929a30692d454bd863d4207 (diff) | |
download | lwn-74a4133079f739eb2f4604263fdb974ce10120a8.tar.gz lwn-74a4133079f739eb2f4604263fdb974ce10120a8.zip |
[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>
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r-- | include/media/media-entity.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h index a53acb099c16..a47a7c8a93cf 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -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; }; |