summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-10-13 05:21:38 (GMT)
committerMinkyu Kang <mk7.kang@samsung.com>2015-10-13 05:25:49 (GMT)
commit468a8080f61cea6b632d2f2ee5ddc7cdefd646f1 (patch)
tree0daaa71c4197f6aee849905f761ad852879fab0d
parentebc3ce7eb24ee52c91061993f2240571a85b9e61 (diff)
downloadair_mediahub-468a8080f61cea6b632d2f2ee5ddc7cdefd646f1.zip
air_mediahub-468a8080f61cea6b632d2f2ee5ddc7cdefd646f1.tar.gz
air_mediahub-468a8080f61cea6b632d2f2ee5ddc7cdefd646f1.tar.bz2
viewer/mplayer: return null if cannot get current mediarefs/changes/09/49409/2
prevent: 483654, 484718 Change-Id: I87ced5578c49f996bfcfbc2cad316a6eba30f2b8 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--src/view/mplayer.c2
-rw-r--r--src/view/viewer.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/view/mplayer.c b/src/view/mplayer.c
index 57da668..754da9f 100644
--- a/src/view/mplayer.c
+++ b/src/view/mplayer.c
@@ -192,6 +192,8 @@ static const char *_playlist_get_current_media_id(struct _priv *priv)
app_media_info *mi;
mi = _playlist_get_current_media_info(priv);
+ if (!mi)
+ return NULL;
return mi->media_id;
}
diff --git a/src/view/viewer.c b/src/view/viewer.c
index 0a9c597..457e4a1 100644
--- a/src/view/viewer.c
+++ b/src/view/viewer.c
@@ -414,6 +414,8 @@ static const char *_get_current_media_id(struct _priv *priv)
app_media_info *mi;
mi = _get_current_media_info(priv);
+ if (!mi)
+ return NULL;
return mi->media_id;
}