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
0530b609
Commit
0530b609
authored
Jun 20, 2011
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theoradec: enable video metadata in the bufferpool
Enable the video metadata in the bufferpool.
parent
cf911926
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
ext/theora/gsttheoradec.c
ext/theora/gsttheoradec.c
+11
-9
No files found.
ext/theora/gsttheoradec.c
View file @
0530b609
...
...
@@ -44,6 +44,7 @@
#include "gsttheoradec.h"
#include <gst/tag/tag.h>
#include <gst/video/video.h>
#include <gst/video/gstmetavideo.h>
#define GST_CAT_DEFAULT theoradec_debug
GST_DEBUG_CATEGORY_STATIC
(
GST_CAT_DEFAULT
);
...
...
@@ -795,6 +796,7 @@ theora_negotiate_pool (GstTheoraDec * dec, GstCaps * caps, GstVideoInfo * info)
GstQuery
*
query
;
GstBufferPool
*
pool
=
NULL
;
guint
size
,
min
,
max
,
prefix
,
alignment
;
GstStructure
*
config
;
/* find a pool for the negotiated caps now */
query
=
gst_query_new_allocation
(
caps
,
TRUE
);
...
...
@@ -813,23 +815,23 @@ theora_negotiate_pool (GstTheoraDec * dec, GstCaps * caps, GstVideoInfo * info)
}
if
(
pool
==
NULL
)
{
GstStructure
*
config
;
/* we did not get a pool, make one ourselves then */
pool
=
gst_buffer_pool_new
();
config
=
gst_buffer_pool_get_config
(
pool
);
gst_buffer_pool_config_set
(
config
,
caps
,
size
,
min
,
max
,
prefix
,
alignment
);
gst_buffer_pool_set_config
(
pool
,
config
);
}
if
(
dec
->
pool
)
gst_object_unref
(
dec
->
pool
);
dec
->
pool
=
pool
;
/* FIXME, we can check if downstream supports clipping and/or video
* metadata. */
config
=
gst_buffer_pool_get_config
(
pool
);
gst_buffer_pool_config_set
(
config
,
caps
,
size
,
min
,
max
,
prefix
,
alignment
);
/* just set the metadata, if the pool can support it we will transparently use
* it through the video info API. We could also see if the pool support this
* metadata and only activate it then. */
gst_buffer_pool_config_add_meta
(
config
,
GST_META_API_VIDEO
);
/* FIXME, we can check if downstream supports clipping metadata */
gst_buffer_pool_set_config
(
pool
,
config
);
/* and activate */
gst_buffer_pool_set_active
(
pool
,
TRUE
);
...
...
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