projects
/
platform
/
upstream
/
gst-rtsp-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
274d4b0
)
stream: handle NULL seqnum and rtptime arguments
author
Wim Taymans
<wtaymans@redhat.com>
Tue, 4 Feb 2014 15:27:12 +0000
(16:27 +0100)
committer
Wim Taymans
<wtaymans@redhat.com>
Tue, 4 Feb 2014 15:28:00 +0000
(16:28 +0100)
gst/rtsp-server/rtsp-stream.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-stream.c
b/gst/rtsp-server/rtsp-stream.c
index
96485df
..
dba20f4
100644
(file)
--- a/
gst/rtsp-server/rtsp-stream.c
+++ b/
gst/rtsp-server/rtsp-stream.c
@@
-1915,7
+1915,11
@@
gst_rtsp_stream_get_rtpinfo (GstRTSPStream * stream,
!g_object_class_find_property (payobjclass, "timestamp"))
goto no_stats;
- g_object_get (priv->payloader, "seqnum", seq, "timestamp", rtptime, NULL);
+ if (seq)
+ g_object_get (priv->payloader, "seqnum", seq, NULL);
+
+ if (rtptime)
+ g_object_get (priv->payloader, "timestamp", rtptime, NULL);
if (running_time)
*running_time = GST_CLOCK_TIME_NONE;