diff options
Diffstat (limited to 'src/layout/movie.c')
-rw-r--r-- | src/layout/movie.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/layout/movie.c b/src/layout/movie.c index d5fb864..a70376c 100644 --- a/src/layout/movie.c +++ b/src/layout/movie.c @@ -457,6 +457,8 @@ static void _update_recent_item(struct _priv *priv, const char *id) if (!dmgr) return; + info = NULL; + list = dmgr->ops->get_list(dmgr->handle, E_LIST_MEDIA, NULL); if (id) @@ -464,15 +466,10 @@ static void _update_recent_item(struct _priv *priv, const char *id) else am = _get_recent_item(list); - if (!am) { - _ERR("failed to get app media"); - return; - } - - info = app_media_get_info(am); - if (!info) { - _ERR("failed to get app media info"); - return; + if (am) { + info = app_media_get_info(am); + if (!info) + _ERR("failed to get app media info"); } priv->recent_info = am; |