Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
44837797
Commit
44837797
authored
Apr 09, 2015
by
Ilya Konstantinov
Committed by
Olivier Crête
Apr 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gst: improve error when agent/stream/component is unset
https://bugs.freedesktop.org/show_bug.cgi?id=89962
parent
718bd720
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
gst/gstnicesink.c
gst/gstnicesink.c
+12
-0
gst/gstnicesrc.c
gst/gstnicesrc.c
+13
-1
No files found.
gst/gstnicesink.c
View file @
44837797
...
...
@@ -555,6 +555,18 @@ gst_nice_sink_change_state (GstElement * element, GstStateChange transition)
"Trying to start Nice sink without an agent set"
);
return
GST_STATE_CHANGE_FAILURE
;
}
else
if
(
sink
->
stream_id
==
0
)
{
GST_ERROR_OBJECT
(
element
,
"Trying to start Nice sink without a stream set"
);
return
GST_STATE_CHANGE_FAILURE
;
}
else
if
(
sink
->
component_id
==
0
)
{
GST_ERROR_OBJECT
(
element
,
"Trying to start Nice sink without a component set"
);
return
GST_STATE_CHANGE_FAILURE
;
}
break
;
case
GST_STATE_CHANGE_READY_TO_PAUSED
:
case
GST_STATE_CHANGE_PAUSED_TO_PLAYING
:
...
...
gst/gstnicesrc.c
View file @
44837797
...
...
@@ -403,12 +403,24 @@ gst_nice_src_change_state (GstElement * element, GstStateChange transition)
switch
(
transition
)
{
case
GST_STATE_CHANGE_NULL_TO_READY
:
if
(
src
->
agent
==
NULL
||
src
->
stream_id
==
0
||
src
->
component_id
==
0
)
if
(
src
->
agent
==
NULL
)
{
GST_ERROR_OBJECT
(
element
,
"Trying to start Nice source without an agent set"
);
return
GST_STATE_CHANGE_FAILURE
;
}
else
if
(
src
->
stream_id
==
0
)
{
GST_ERROR_OBJECT
(
element
,
"Trying to start Nice source without a stream set"
);
return
GST_STATE_CHANGE_FAILURE
;
}
else
if
(
src
->
component_id
==
0
)
{
GST_ERROR_OBJECT
(
element
,
"Trying to start Nice source without a component set"
);
return
GST_STATE_CHANGE_FAILURE
;
}
else
{
nice_agent_attach_recv
(
src
->
agent
,
src
->
stream_id
,
src
->
component_id
,
...
...
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