Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
62d6c00a
Commit
62d6c00a
authored
Mar 29, 2012
by
Mark Nauwelaerts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audiopanorama: fix supported template caps and sample processing
parent
8effa9b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gst/audiofx/audiopanorama.c
gst/audiofx/audiopanorama.c
+5
-3
No files found.
gst/audiofx/audiopanorama.c
View file @
62d6c00a
...
@@ -94,11 +94,11 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
...
@@ -94,11 +94,11 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK
,
GST_PAD_SINK
,
GST_PAD_ALWAYS
,
GST_PAD_ALWAYS
,
GST_STATIC_CAPS
(
"audio/x-raw, "
GST_STATIC_CAPS
(
"audio/x-raw, "
"format = (string) { "
GST_AUDIO_NE
(
S
32
)
", "
GST_AUDIO_NE
(
S16
)
"}, "
"format = (string) { "
GST_AUDIO_NE
(
F
32
)
", "
GST_AUDIO_NE
(
S16
)
"}, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 1, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 1, "
"layout = (string) interleaved;"
"layout = (string) interleaved;"
"audio/x-raw, "
"audio/x-raw, "
"format = (string) { "
GST_AUDIO_NE
(
S
32
)
", "
GST_AUDIO_NE
(
S16
)
"}, "
"format = (string) { "
GST_AUDIO_NE
(
F
32
)
", "
GST_AUDIO_NE
(
S16
)
"}, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 2, "
"rate = (int) [ 1, MAX ], "
"channels = (int) 2, "
"layout = (string) interleaved, "
"channel-mask = (bitmask) 0x3"
)
"layout = (string) interleaved, "
"channel-mask = (bitmask) 0x3"
)
);
);
...
@@ -645,7 +645,9 @@ gst_audio_panorama_transform (GstBaseTransform * base, GstBuffer * inbuf,
...
@@ -645,7 +645,9 @@ gst_audio_panorama_transform (GstBaseTransform * base, GstBuffer * inbuf,
GST_BUFFER_FLAG_SET
(
outbuf
,
GST_BUFFER_FLAG_GAP
);
GST_BUFFER_FLAG_SET
(
outbuf
,
GST_BUFFER_FLAG_GAP
);
memset
(
outmap
.
data
,
0
,
outmap
.
size
);
memset
(
outmap
.
data
,
0
,
outmap
.
size
);
}
else
{
}
else
{
guint
num_samples
=
outmap
.
size
/
GST_AUDIO_INFO_BPF
(
&
filter
->
info
);
/* output always stereo, input mono or stereo,
* and info describes input format */
guint
num_samples
=
outmap
.
size
/
(
2
*
GST_AUDIO_INFO_BPS
(
&
filter
->
info
));
filter
->
process
(
filter
,
inmap
.
data
,
outmap
.
data
,
num_samples
);
filter
->
process
(
filter
,
inmap
.
data
,
outmap
.
data
,
num_samples
);
}
}
...
...
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