projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
458ec6a
)
mpdparser: fix coverity issue
24/172624/3
accepted/tizen/unified/20180316.062614
submit/tizen/20180315.045940
author
Eunhae Choi
<eunhae1.choi@samsung.com>
Thu, 15 Mar 2018 02:27:19 +0000
(11:27 +0900)
committer
eunhae choi
<eunhae1.choi@samsung.com>
Thu, 15 Mar 2018 04:01:41 +0000
(
04:01
+0000)
Change-Id: Ibe7de64b268a76cd29062dff143147e4e16c82d5
ext/dash/gstmpdparser.c
patch
|
blob
|
history
diff --git
a/ext/dash/gstmpdparser.c
b/ext/dash/gstmpdparser.c
index f78f04d9193e63d6f453697b90a1c8f421953ef8..5188feb3ba66d2e873eec59825075a8335a0cbc4 100644
(file)
--- a/
ext/dash/gstmpdparser.c
+++ b/
ext/dash/gstmpdparser.c
@@
-5055,7
+5055,10
@@
gst_mpd_client_add_time_difference (GstDateTime * t1, gint64 usecs)
gdt = gst_date_time_to_g_date_time (t1);
g_return_val_if_fail (gdt != NULL, NULL);
gdt2 = g_date_time_add (gdt, usecs);
- g_return_val_if_fail (gdt2 != NULL, NULL);
+ if (gdt2 == NULL) {
+ g_date_time_unref (gdt);
+ return NULL;
+ }
#else
g_assert (t1 != NULL);
gdt = gst_date_time_to_g_date_time (t1);