Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-good
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
03bde3f0
Commit
03bde3f0
authored
Mar 28, 2012
by
Mark Nauwelaerts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flacenc: query downstream for BYTE seeking support
parent
5550d8bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
ext/flac/gstflacenc.c
ext/flac/gstflacenc.c
+20
-0
No files found.
ext/flac/gstflacenc.c
View file @
03bde3f0
...
...
@@ -842,6 +842,26 @@ gst_flac_enc_seek_callback (const FLAC__StreamEncoder * encoder,
if
((
peerpad
=
gst_pad_get_peer
(
GST_AUDIO_ENCODER_SRC_PAD
(
flacenc
))))
{
GstEvent
*
event
;
gboolean
ret
;
GstQuery
*
query
;
gboolean
seekable
=
FALSE
;
/* try to seek to the beginning of the output */
query
=
gst_query_new_seeking
(
GST_FORMAT_BYTES
);
if
(
gst_pad_query
(
peerpad
,
query
))
{
GstFormat
format
;
gst_query_parse_seeking
(
query
,
&
format
,
&
seekable
,
NULL
,
NULL
);
if
(
format
!=
GST_FORMAT_BYTES
)
seekable
=
FALSE
;
}
else
{
GST_LOG_OBJECT
(
flacenc
,
"SEEKING query not handled"
);
}
gst_query_unref
(
query
);
if
(
!
seekable
)
{
GST_DEBUG_OBJECT
(
flacenc
,
"downstream not seekable; not rewriting"
);
return
FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED
;
}
gst_segment_init
(
&
seg
,
GST_FORMAT_BYTES
);
seg
.
start
=
absolute_byte_offset
;
...
...
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