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-base
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-base
Commits
54341cbe
Commit
54341cbe
authored
Feb 02, 2003
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile error
Original commit message from CVS: Fix compile error Add some more debug info
parent
3b184849
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ext/vorbis/vorbisfile.c
ext/vorbis/vorbisfile.c
+8
-4
No files found.
ext/vorbis/vorbisfile.c
View file @
54341cbe
...
...
@@ -227,11 +227,11 @@ gst_vorbisfile_read (void *ptr, size_t size, size_t nmemb, void *datasource)
{
guint32
got_bytes
;
guint8
*
data
;
size_t
read_size
=
size
*
nmemb
;
guint32
read_size
=
size
*
nmemb
;
VorbisFile
*
vorbisfile
=
GST_VORBISFILE
(
datasource
);
GST_DEBUG
(
0
,
"read %
"
G_GINT64_FORMAT
,
read_size
);
GST_DEBUG
(
0
,
"read %
d"
,
read_size
);
/* make sure we don't go to EOS */
if
(
!
vorbisfile
->
may_eos
&&
vorbisfile
->
total_bytes
&&
...
...
@@ -246,6 +246,8 @@ gst_vorbisfile_read (void *ptr, size_t size, size_t nmemb, void *datasource)
do
{
got_bytes
=
gst_bytestream_peek_bytes
(
vorbisfile
->
bs
,
&
data
,
read_size
);
GST_DEBUG
(
0
,
"peek returned %d"
,
got_bytes
);
if
(
got_bytes
==
0
)
{
GstEvent
*
event
;
guint32
avail
;
...
...
@@ -262,12 +264,15 @@ gst_vorbisfile_read (void *ptr, size_t size, size_t nmemb, void *datasource)
GST_DEBUG
(
0
,
"discont"
);
vorbisfile
->
need_discont
=
TRUE
;
default:
GST_DEBUG
(
0
,
"unknown event %d"
,
GST_EVENT_TYPE
(
event
));
break
;
}
gst_event_unref
(
event
);
}
}
while
(
got_bytes
==
0
);
GST_DEBUG
(
0
,
"read %d got %d bytes"
,
read_size
,
got_bytes
);
memcpy
(
ptr
,
data
,
got_bytes
);
gst_bytestream_flush_fast
(
vorbisfile
->
bs
,
got_bytes
);
...
...
@@ -285,7 +290,6 @@ gst_vorbisfile_seek (void *datasource, int64_t offset, int whence)
guint64
pending_offset
=
vorbisfile
->
offset
;
gboolean
need_total
=
FALSE
;
if
(
!
vorbisfile
->
vf
.
seekable
)
{
return
-
1
;
}
...
...
@@ -484,7 +488,7 @@ gst_vorbisfile_loop (GstElement *element)
vorbisfile
->
may_eos
=
FALSE
;
vorbisfile
->
vf
.
seekable
=
gst_bytestream_seek
(
vorbisfile
->
bs
,
0
,
GST_SEEK_METHOD_SET
);
GST_DEBUG
(
GST_CAT_PLUGIN_INFO
,
"vorbisfile: seekable: %s
\n
"
,
GST_DEBUG
(
GST_CAT_PLUGIN_INFO
,
"vorbisfile: seekable: %s"
,
vorbisfile
->
vf
.
seekable
?
"yes"
:
"no"
);
/* open our custom vorbisfile data object with the callbacks we provide */
...
...
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