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 / Register
Toggle navigation
Open sidebar
Göran Jönsson
gst-plugins-base
Commits
124bfb7e
Commit
124bfb7e
authored
Dec 19, 2003
by
Thomas Vander Stichele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
superfluous space segregation
Original commit message from CVS: superfluous space segregation
parent
9e40c6c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
examples/gstplay/player.c
examples/gstplay/player.c
+6
-6
tests/old/examples/gstplay/player.c
tests/old/examples/gstplay/player.c
+6
-6
No files found.
examples/gstplay/player.c
View file @
124bfb7e
...
...
@@ -107,7 +107,7 @@ main (int argc, char *argv[])
g_print
(
"usage: %s <video filename>
\n
"
,
argv
[
0
]);
exit
(
-
1
);
}
loop
=
g_main_loop_new
(
NULL
,
FALSE
);
/* Creating the GstPlay object */
...
...
@@ -118,18 +118,18 @@ main (int argc, char *argv[])
video_sink
=
gst_element_factory_make
(
"xvimagesink"
,
"video_sink"
);
vis_element
=
gst_element_factory_make
(
"goom"
,
"vis_element"
);
data_src
=
gst_element_factory_make
(
"gnomevfssrc"
,
"source"
);
/* Let's send them to GstPlay object */
gst_play_set_audio_sink
(
play
,
audio_sink
);
gst_play_set_video_sink
(
play
,
video_sink
);
gst_play_set_data_src
(
play
,
data_src
);
gst_play_set_visualization
(
play
,
vis_element
);
/* Setting location we want to play */
gst_play_set_location
(
play
,
argv
[
1
]);
/* gst_xml_write_file (GST_ELEMENT (play), stdout); */
g_signal_connect
(
G_OBJECT
(
play
),
"time_tick"
,
G_CALLBACK
(
got_time_tick
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"stream_length"
,
...
...
@@ -140,13 +140,13 @@ main (int argc, char *argv[])
G_CALLBACK
(
got_found_tag
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"eos"
,
G_CALLBACK
(
got_eos
),
NULL
);
/* Change state to PLAYING */
gst_element_set_state
(
GST_ELEMENT
(
play
),
GST_STATE_PLAYING
);
g_idle_add
((
GSourceFunc
)
idle_iterate
,
play
);
g_timeout_add
(
20000
,
(
GSourceFunc
)
seek_timer
,
play
);
g_main_loop_run
(
loop
);
/* unref */
...
...
tests/old/examples/gstplay/player.c
View file @
124bfb7e
...
...
@@ -107,7 +107,7 @@ main (int argc, char *argv[])
g_print
(
"usage: %s <video filename>
\n
"
,
argv
[
0
]);
exit
(
-
1
);
}
loop
=
g_main_loop_new
(
NULL
,
FALSE
);
/* Creating the GstPlay object */
...
...
@@ -118,18 +118,18 @@ main (int argc, char *argv[])
video_sink
=
gst_element_factory_make
(
"xvimagesink"
,
"video_sink"
);
vis_element
=
gst_element_factory_make
(
"goom"
,
"vis_element"
);
data_src
=
gst_element_factory_make
(
"gnomevfssrc"
,
"source"
);
/* Let's send them to GstPlay object */
gst_play_set_audio_sink
(
play
,
audio_sink
);
gst_play_set_video_sink
(
play
,
video_sink
);
gst_play_set_data_src
(
play
,
data_src
);
gst_play_set_visualization
(
play
,
vis_element
);
/* Setting location we want to play */
gst_play_set_location
(
play
,
argv
[
1
]);
/* gst_xml_write_file (GST_ELEMENT (play), stdout); */
g_signal_connect
(
G_OBJECT
(
play
),
"time_tick"
,
G_CALLBACK
(
got_time_tick
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"stream_length"
,
...
...
@@ -140,13 +140,13 @@ main (int argc, char *argv[])
G_CALLBACK
(
got_found_tag
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"eos"
,
G_CALLBACK
(
got_eos
),
NULL
);
/* Change state to PLAYING */
gst_element_set_state
(
GST_ELEMENT
(
play
),
GST_STATE_PLAYING
);
g_idle_add
((
GSourceFunc
)
idle_iterate
,
play
);
g_timeout_add
(
20000
,
(
GSourceFunc
)
seek_timer
,
play
);
g_main_loop_run
(
loop
);
/* unref */
...
...
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