summaryrefslogtreecommitdiff
path: root/src/mediactl.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-05-30 17:10:25 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-05-30 17:12:09 +0200
commite13967d6479ead0be90fa241feb52a776b8481dc (patch)
tree7996b8aa03f1d47fee93053f1c13f9a86a83ec5b /src/mediactl.c
parent7a561627189f6062d99bcb77a0c52dd55f25455e (diff)
Return NULL for default entity types in media_get_default_entity
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/mediactl.c')
-rw-r--r--src/mediactl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mediactl.c b/src/mediactl.c
index 4ac2e13..6e2d29a 100644
--- a/src/mediactl.c
+++ b/src/mediactl.c
@@ -158,6 +158,8 @@ struct media_entity *media_get_default_entity(struct media_device *media,
case MEDIA_ENT_T_DEVNODE_DVB:
return media->def.dvb;
}
+
+ return NULL;
}
const struct media_device_info *media_get_info(struct media_device *media)