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-base
Commits
5de95525
Commit
5de95525
authored
Jun 02, 2002
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UNIT -> UNITS
Original commit message from CVS: UNIT -> UNITS
parent
97a7f4a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
ext/vorbis/vorbisfile.c
ext/vorbis/vorbisfile.c
+6
-6
testsuite/seeking/seek1.c
testsuite/seeking/seek1.c
+1
-1
No files found.
ext/vorbis/vorbisfile.c
View file @
5de95525
...
...
@@ -370,7 +370,7 @@ gst_vorbisfile_loop (GstElement *element)
}
}
break
;
case
GST_FORMAT_UNIT
:
case
GST_FORMAT_UNIT
S
:
if
(
vorbisfile
->
seek_accurate
)
{
if
(
ov_pcm_seek
(
&
vorbisfile
->
vf
,
(
gdouble
)
vorbisfile
->
seek_value
/
GST_SECOND
)
==
0
)
{
vorbisfile
->
need_discont
=
TRUE
;
...
...
@@ -398,7 +398,7 @@ gst_vorbisfile_loop (GstElement *element)
samples
=
(
gint64
)
(
ov_pcm_tell
(
&
vorbisfile
->
vf
));
discont
=
gst_event_new_discontinuous
(
FALSE
,
GST_FORMAT_TIME
,
time
,
GST_FORMAT_UNIT
,
samples
,
NULL
);
GST_FORMAT_UNIT
S
,
samples
,
NULL
);
vorbisfile
->
need_discont
=
FALSE
;
gst_pad_push
(
vorbisfile
->
srcpad
,
GST_BUFFER
(
discont
));
...
...
@@ -468,7 +468,7 @@ gst_vorbisfile_src_query (GstPad *pad, GstPadQueryType type,
case
GST_PAD_QUERY_TOTAL
:
{
switch
(
*
format
)
{
case
GST_FORMAT_UNIT
:
case
GST_FORMAT_UNIT
S
:
*
value
=
ov_pcm_total
(
&
vorbisfile
->
vf
,
-
1
);
break
;
case
GST_FORMAT_BYTES
:
...
...
@@ -494,7 +494,7 @@ gst_vorbisfile_src_query (GstPad *pad, GstPadQueryType type,
case
GST_FORMAT_TIME
:
*
value
=
(
gint64
)
(
ov_time_tell
(
&
vorbisfile
->
vf
)
*
GST_SECOND
);
break
;
case
GST_FORMAT_UNIT
:
case
GST_FORMAT_UNIT
S
:
*
value
=
ov_pcm_tell
(
&
vorbisfile
->
vf
);
break
;
default:
...
...
@@ -530,10 +530,10 @@ gst_vorbisfile_src_event (GstPad *pad, GstEvent *event)
vorbisfile
->
seek_format
=
GST_FORMAT_TIME
;
vorbisfile
->
seek_accurate
=
GST_EVENT_SEEK_FLAGS
(
event
)
&
GST_SEEK_FLAG_ACCURATE
;
break
;
case
GST_FORMAT_UNIT
:
case
GST_FORMAT_UNIT
S
:
vorbisfile
->
seek_pending
=
TRUE
;
vorbisfile
->
seek_value
=
GST_EVENT_SEEK_OFFSET
(
event
);
vorbisfile
->
seek_format
=
GST_FORMAT_UNIT
;
vorbisfile
->
seek_format
=
GST_FORMAT_UNIT
S
;
vorbisfile
->
seek_accurate
=
GST_EVENT_SEEK_FLAGS
(
event
)
&
GST_SEEK_FLAG_ACCURATE
;
break
;
default:
...
...
testsuite/seeking/seek1.c
View file @
5de95525
...
...
@@ -313,7 +313,7 @@ static seek_format seek_formats[] =
{
{
"tim"
,
GST_FORMAT_TIME
},
{
"byt"
,
GST_FORMAT_BYTES
},
{
"unt"
,
GST_FORMAT_UNIT
},
{
"unt"
,
GST_FORMAT_UNIT
S
},
{
"buf"
,
GST_FORMAT_BUFFERS
},
{
"def"
,
GST_FORMAT_DEFAULT
},
{
NULL
,
0
},
...
...
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