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
880b9a20
Commit
880b9a20
authored
Aug 04, 2012
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tagdemux: Add stream-id to stream-start event
parent
e25a861e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
gst-libs/gst/tag/gsttagdemux.c
gst-libs/gst/tag/gsttagdemux.c
+5
-1
No files found.
gst-libs/gst/tag/gsttagdemux.c
View file @
880b9a20
...
...
@@ -344,13 +344,17 @@ gst_tag_demux_set_src_caps (GstTagDemux * tagdemux, GstCaps * new_caps)
GstCaps
*
old_caps
=
tagdemux
->
priv
->
src_caps
;
if
(
old_caps
==
NULL
||
!
gst_caps_is_equal
(
new_caps
,
old_caps
))
{
gchar
*
stream_id
=
gst_pad_create_stream_id
(
tagdemux
->
priv
->
srcpad
,
GST_ELEMENT_CAST
(
tagdemux
),
NULL
);
gst_caps_replace
(
&
tagdemux
->
priv
->
src_caps
,
new_caps
);
GST_DEBUG_OBJECT
(
tagdemux
,
"Changing src pad caps to %"
GST_PTR_FORMAT
,
tagdemux
->
priv
->
src_caps
);
gst_pad_push_event
(
tagdemux
->
priv
->
srcpad
,
gst_event_new_stream_start
());
gst_pad_push_event
(
tagdemux
->
priv
->
srcpad
,
gst_event_new_stream_start
(
stream_id
));
g_free
(
stream_id
);
gst_pad_set_caps
(
tagdemux
->
priv
->
srcpad
,
tagdemux
->
priv
->
src_caps
);
}
else
{
/* Caps never changed */
...
...
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