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
gst-plugins-good
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
Marc-André Lureau
gst-plugins-good
Commits
732f29db
Commit
732f29db
authored
Apr 04, 2012
by
Mark Nauwelaerts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: qtmux: ensure initialized test buffer memory
parent
5cdd49bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/check/elements/qtmux.c
tests/check/elements/qtmux.c
+4
-0
No files found.
tests/check/elements/qtmux.c
View file @
732f29db
...
...
@@ -208,6 +208,7 @@ check_qtmux_pad (GstStaticPadTemplate * srctemplate, const gchar * sinkname,
fail_unless
(
gst_pad_push_event
(
mysrcpad
,
gst_event_new_segment
(
&
segment
)));
inbuffer
=
gst_buffer_new_and_alloc
(
1
);
gst_buffer_memset
(
inbuffer
,
0
,
0
,
1
);
caps
=
gst_pad_get_pad_template_caps
(
mysrcpad
);
gst_pad_set_caps
(
mysrcpad
,
caps
);
gst_caps_unref
(
caps
);
...
...
@@ -296,6 +297,7 @@ check_qtmux_pad_fragmented (GstStaticPadTemplate * srctemplate,
fail_unless
(
gst_pad_push_event
(
mysrcpad
,
gst_event_new_segment
(
&
segment
)));
inbuffer
=
gst_buffer_new_and_alloc
(
1
);
gst_buffer_memset
(
inbuffer
,
0
,
0
,
1
);
caps
=
gst_pad_get_pad_template_caps
(
mysrcpad
);
gst_pad_set_caps
(
mysrcpad
,
caps
);
gst_caps_unref
(
caps
);
...
...
@@ -526,6 +528,7 @@ GST_START_TEST (test_reuse)
inbuffer
=
gst_buffer_new_and_alloc
(
1
);
fail_unless
(
inbuffer
!=
NULL
);
gst_buffer_memset
(
inbuffer
,
0
,
0
,
1
);
caps
=
gst_pad_get_pad_template_caps
(
mysrcpad
);
gst_pad_set_caps
(
mysrcpad
,
caps
);
gst_caps_unref
(
caps
);
...
...
@@ -817,6 +820,7 @@ test_average_bitrate_custom (const gchar * elementname,
for
(
i
=
0
;
i
<
3
;
i
++
)
{
inbuffer
=
gst_buffer_new_and_alloc
(
bytes
[
i
]);
gst_buffer_memset
(
inbuffer
,
0
,
0
,
bytes
[
i
]);
caps
=
gst_pad_get_pad_template_caps
(
mysrcpad
);
gst_pad_set_caps
(
mysrcpad
,
caps
);
gst_caps_unref
(
caps
);
...
...
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