Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Zeeshan Ali
gstreamer-rs
Commits
7f265a23
Commit
7f265a23
authored
Mar 02, 2018
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename DiscovererStreamInfo iterator simply to Iter and don't re-export it top-level
parent
c81e177c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
gstreamer-pbutils/src/discoverer_stream_info.rs
gstreamer-pbutils/src/discoverer_stream_info.rs
+6
-6
gstreamer-pbutils/src/lib.rs
gstreamer-pbutils/src/lib.rs
+1
-2
No files found.
gstreamer-pbutils/src/discoverer_stream_info.rs
View file @
7f265a23
...
...
@@ -10,12 +10,12 @@
use
DiscovererStreamInfo
;
use
DiscovererStreamInfoExt
;
pub
struct
DiscovererStreamInfo
Iter
{
pub
struct
Iter
{
stream_info
:
Option
<
DiscovererStreamInfo
>
,
direction_forward
:
bool
}
impl
Iterator
for
DiscovererStreamInfo
Iter
{
impl
Iterator
for
Iter
{
type
Item
=
DiscovererStreamInfo
;
fn
next
(
&
mut
self
)
->
Option
<
DiscovererStreamInfo
>
{
...
...
@@ -36,15 +36,15 @@ impl Iterator for DiscovererStreamInfoIter {
}
impl
DiscovererStreamInfo
{
pub
fn
next_iter
(
&
self
)
->
DiscovererStreamInfo
Iter
{
DiscovererStreamInfo
Iter
{
pub
fn
next_iter
(
&
self
)
->
Iter
{
Iter
{
stream_info
:
self
.get_next
(),
direction_forward
:
true
}
}
pub
fn
previous_iter
(
&
self
)
->
DiscovererStreamInfo
Iter
{
DiscovererStreamInfo
Iter
{
pub
fn
previous_iter
(
&
self
)
->
Iter
{
Iter
{
stream_info
:
self
.get_previous
(),
direction_forward
:
false
}
...
...
gstreamer-pbutils/src/lib.rs
View file @
7f265a23
...
...
@@ -56,8 +56,7 @@ pub use auto::*;
mod
discoverer
;
pub
use
discoverer
::
*
;
mod
discoverer_stream_info
;
pub
use
discoverer_stream_info
::
*
;
pub
mod
discoverer_stream_info
;
mod
discoverer_video_info
;
pub
use
discoverer_video_info
::
*
;
...
...
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