Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Sebastian Dröge
gst-plugins-base
Commits
17c839c8
Commit
17c839c8
authored
Aug 08, 2012
by
Tim-Philipp Müller
🐠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No statements with side-effects in g_assert() or g_return_*() please
parent
6422f2d0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
12 deletions
+25
-12
ext/ogg/gstoggmux.c
ext/ogg/gstoggmux.c
+2
-1
gst-libs/gst/tag/gstvorbistag.c
gst-libs/gst/tag/gstvorbistag.c
+3
-1
gst/tcp/gstmultifdsink.c
gst/tcp/gstmultifdsink.c
+3
-1
tests/check/pipelines/capsfilter-renegotiation.c
tests/check/pipelines/capsfilter-renegotiation.c
+1
-1
tests/examples/playrec/playrec.c
tests/examples/playrec/playrec.c
+16
-8
No files found.
ext/ogg/gstoggmux.c
View file @
17c839c8
...
...
@@ -1209,7 +1209,8 @@ gst_ogg_mux_make_fishead (GstOggMux * mux, ogg_stream_state * os)
static
void
gst_ogg_mux_byte_writer_put_string_utf8
(
GstByteWriter
*
bw
,
const
char
*
s
)
{
g_assert
(
gst_byte_writer_put_data
(
bw
,
(
const
guint8
*
)
s
,
strlen
(
s
)));
if
(
!
gst_byte_writer_put_data
(
bw
,
(
const
guint8
*
)
s
,
strlen
(
s
)))
GST_ERROR
(
"put_data failed"
);
}
static
void
...
...
gst-libs/gst/tag/gstvorbistag.c
View file @
17c839c8
...
...
@@ -513,7 +513,9 @@ gst_tag_list_from_vorbiscomment_buffer (GstBuffer * buffer,
GstTagList
*
res
;
GstMapInfo
info
;
g_assert
(
gst_buffer_map
(
buffer
,
&
info
,
GST_MAP_READ
));
if
(
!
gst_buffer_map
(
buffer
,
&
info
,
GST_MAP_READ
))
g_return_val_if_reached
(
NULL
);
res
=
gst_tag_list_from_vorbiscomment
(
info
.
data
,
info
.
size
,
id_data
,
id_data_length
,
vendor_string
);
...
...
gst/tcp/gstmultifdsink.c
View file @
17c839c8
...
...
@@ -662,7 +662,9 @@ gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink,
/* pick first buffer from list */
head
=
GST_BUFFER
(
mhclient
->
sending
->
data
);
g_assert
(
gst_buffer_map
(
head
,
&
info
,
GST_MAP_READ
));
if
(
!
gst_buffer_map
(
head
,
&
info
,
GST_MAP_READ
))
g_return_val_if_reached
(
FALSE
);
data
=
info
.
data
;
maxsize
=
info
.
size
-
mhclient
->
bufoffset
;
...
...
tests/check/pipelines/capsfilter-renegotiation.c
View file @
17c839c8
...
...
@@ -119,7 +119,7 @@ run_capsfilter_renegotiation (const gchar * launch_line)
bus
=
gst_pipeline_get_bus
(
GST_PIPELINE
(
pipeline
));
g_assert
(
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
)
!=
fail_unless
(
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
)
!=
GST_STATE_CHANGE_FAILURE
);
msg
=
gst_bus_timed_pop_filtered
(
bus
,
GST_CLOCK_TIME_NONE
,
...
...
tests/examples/playrec/playrec.c
View file @
17c839c8
...
...
@@ -62,8 +62,10 @@ message_handler (GstBus * bus, GstMessage * message, gpointer user_data)
(
"prerolled, starting synchronized playback and recording
\n
"
);
/* returns ASYNC because the sink linked to the live source is not
* prerolled */
g_assert
(
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
)
==
GST_STATE_CHANGE_ASYNC
);
if
(
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
)
!=
GST_STATE_CHANGE_ASYNC
)
{
g_warning
(
"State change failed"
);
}
}
break
;
default:
...
...
@@ -139,19 +141,25 @@ main (int argc, char *argv[])
g_print
(
"going to PAUSED
\n
"
);
/* returns NO_PREROLL because we have a live element */
g_assert
(
gst_element_set_state
(
pipeline
,
GST_STATE_PAUSED
)
==
GST_STATE_CHANGE_NO_PREROLL
);
if
(
gst_element_set_state
(
pipeline
,
GST_STATE_PAUSED
)
!=
GST_STATE_CHANGE_NO_PREROLL
)
{
g_warning
(
"Expected state change NO_PREROLL result"
);
}
g_print
(
"waiting for playback preroll
\n
"
);
#ifndef ASYNC_VERSION
/* sync wait for preroll on the playback bin and then go to PLAYING */
g_assert
(
gst_element_get_state
(
play_bin
,
NULL
,
NULL
,
GST_CLOCK_TIME_NONE
)
==
GST_STATE_CHANGE_SUCCESS
);
if
(
gst_element_get_state
(
play_bin
,
NULL
,
NULL
,
GST_CLOCK_TIME_NONE
)
!=
GST_STATE_CHANGE_SUCCESS
)
{
g_warning
(
"Error while waiting for state change"
);
}
g_print
(
"prerolled, starting synchronized playback and recording
\n
"
);
/* returns ASYNC because the sink linked to the live source is not
* prerolled */
g_assert
(
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
)
==
GST_STATE_CHANGE_ASYNC
);
if
(
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
)
!=
GST_STATE_CHANGE_ASYNC
)
{
g_warning
(
"Expected state change NO_PREROLL result"
);
}
#endif
g_main_loop_run
(
loop
);
...
...
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