Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-good
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
ab245984
Commit
ab245984
authored
Jul 02, 2013
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtspsrc: avoid some strdup
parent
7c950ef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
gst/rtsp/gstrtspsrc.c
gst/rtsp/gstrtspsrc.c
+2
-4
No files found.
gst/rtsp/gstrtspsrc.c
View file @
ab245984
...
...
@@ -5517,8 +5517,7 @@ gst_rtspsrc_setup_streams (GstRTSPSrc * src, gboolean async)
* parameter */
if
(
src
->
rtp_blocksize
>
0
)
{
hval
=
g_strdup_printf
(
"%d"
,
src
->
rtp_blocksize
);
gst_rtsp_message_add_header
(
&
request
,
GST_RTSP_HDR_BLOCKSIZE
,
hval
);
g_free
(
hval
);
gst_rtsp_message_take_header
(
&
request
,
GST_RTSP_HDR_BLOCKSIZE
,
hval
);
}
if
(
async
)
...
...
@@ -6570,8 +6569,7 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment, gboolean async)
if
(
src
->
need_range
)
{
hval
=
gen_range_header
(
src
,
segment
);
gst_rtsp_message_add_header
(
&
request
,
GST_RTSP_HDR_RANGE
,
hval
);
g_free
(
hval
);
gst_rtsp_message_take_header
(
&
request
,
GST_RTSP_HDR_RANGE
,
hval
);
/* store the newsegment event so it can be sent from the streaming thread. */
if
(
src
->
start_segment
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment