Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sebastian Dröge
gst-plugins-base
Commits
f83cb187
Commit
f83cb187
authored
Mar 15, 2004
by
Thomas Vander Stichele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
parent
8392245d
Changes
126
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
126 changed files
with
5164 additions
and
5100 deletions
+5164
-5100
ChangeLog
ChangeLog
+4
-0
examples/capsfilter/capsfilter1.c
examples/capsfilter/capsfilter1.c
+1
-1
examples/dynparams/filter.c
examples/dynparams/filter.c
+49
-49
examples/gstplay/player.c
examples/gstplay/player.c
+1
-1
examples/indexing/indexmpeg.c
examples/indexing/indexmpeg.c
+15
-14
examples/seeking/cdparanoia.c
examples/seeking/cdparanoia.c
+12
-12
examples/seeking/cdplayer.c
examples/seeking/cdplayer.c
+10
-9
examples/seeking/seek.c
examples/seeking/seek.c
+27
-24
examples/seeking/spider_seek.c
examples/seeking/spider_seek.c
+13
-12
examples/seeking/vorbisfile.c
examples/seeking/vorbisfile.c
+12
-12
examples/stats/mp2ogg.c
examples/stats/mp2ogg.c
+9
-9
ext/alsa/gstalsa.c
ext/alsa/gstalsa.c
+216
-216
ext/alsa/gstalsaclock.c
ext/alsa/gstalsaclock.c
+6
-5
ext/alsa/gstalsamixer.c
ext/alsa/gstalsamixer.c
+28
-28
ext/alsa/gstalsamixertrack.c
ext/alsa/gstalsamixertrack.c
+2
-2
ext/alsa/gstalsaplugin.c
ext/alsa/gstalsaplugin.c
+3
-3
ext/alsa/gstalsasink.c
ext/alsa/gstalsasink.c
+129
-129
ext/alsa/gstalsasrc.c
ext/alsa/gstalsasrc.c
+34
-34
ext/cdparanoia/gstcdparanoia.c
ext/cdparanoia/gstcdparanoia.c
+169
-168
ext/gnomevfs/gstgnomevfs.c
ext/gnomevfs/gstgnomevfs.c
+2
-2
ext/gnomevfs/gstgnomevfssink.c
ext/gnomevfs/gstgnomevfssink.c
+23
-21
ext/gnomevfs/gstgnomevfssrc.c
ext/gnomevfs/gstgnomevfssrc.c
+166
-161
ext/ogg/gstoggdemux.c
ext/ogg/gstoggdemux.c
+251
-244
ext/pango/gsttextoverlay.c
ext/pango/gsttextoverlay.c
+67
-66
ext/pango/gsttimeoverlay.c
ext/pango/gsttimeoverlay.c
+7
-6
ext/theora/theoradec.c
ext/theora/theoradec.c
+74
-74
ext/vorbis/vorbis.c
ext/vorbis/vorbis.c
+2
-2
ext/vorbis/vorbisdec.c
ext/vorbis/vorbisdec.c
+69
-68
ext/vorbis/vorbisenc.c
ext/vorbis/vorbisenc.c
+166
-165
gst-libs/gst/audio/audio.c
gst-libs/gst/audio/audio.c
+20
-20
gst-libs/gst/audio/audioclock.c
gst-libs/gst/audio/audioclock.c
+3
-2
gst-libs/gst/audio/gstaudiofilter.c
gst-libs/gst/audio/gstaudiofilter.c
+6
-5
gst-libs/gst/audio/gstaudiofiltertemplate.c
gst-libs/gst/audio/gstaudiofiltertemplate.c
+4
-3
gst-libs/gst/colorbalance/colorbalance.c
gst-libs/gst/colorbalance/colorbalance.c
+8
-8
gst-libs/gst/colorbalance/colorbalancechannel.c
gst-libs/gst/colorbalance/colorbalancechannel.c
+3
-3
gst-libs/gst/gconf/gconf.c
gst-libs/gst/gconf/gconf.c
+8
-8
gst-libs/gst/idct/fastintidct.c
gst-libs/gst/idct/fastintidct.c
+13
-13
gst-libs/gst/idct/floatidct.c
gst-libs/gst/idct/floatidct.c
+3
-3
gst-libs/gst/idct/ieeetest.c
gst-libs/gst/idct/ieeetest.c
+30
-30
gst-libs/gst/idct/intidct.c
gst-libs/gst/idct/intidct.c
+54
-54
gst-libs/gst/idct/mmx32idct.c
gst-libs/gst/idct/mmx32idct.c
+287
-285
gst-libs/gst/interfaces/colorbalance.c
gst-libs/gst/interfaces/colorbalance.c
+8
-8
gst-libs/gst/interfaces/colorbalancechannel.c
gst-libs/gst/interfaces/colorbalancechannel.c
+3
-3
gst-libs/gst/interfaces/mixer.c
gst-libs/gst/interfaces/mixer.c
+20
-20
gst-libs/gst/interfaces/mixertrack.c
gst-libs/gst/interfaces/mixertrack.c
+5
-5
gst-libs/gst/interfaces/navigation.c
gst-libs/gst/interfaces/navigation.c
+4
-4
gst-libs/gst/interfaces/propertyprobe.c
gst-libs/gst/interfaces/propertyprobe.c
+6
-6
gst-libs/gst/interfaces/tuner.c
gst-libs/gst/interfaces/tuner.c
+28
-28
gst-libs/gst/interfaces/tunerchannel.c
gst-libs/gst/interfaces/tunerchannel.c
+4
-4
gst-libs/gst/interfaces/tunernorm.c
gst-libs/gst/interfaces/tunernorm.c
+2
-2
gst-libs/gst/interfaces/xoverlay.c
gst-libs/gst/interfaces/xoverlay.c
+12
-12
gst-libs/gst/media-info/media-info-priv.c
gst-libs/gst/media-info/media-info-priv.c
+48
-47
gst-libs/gst/media-info/media-info-test.c
gst-libs/gst/media-info/media-info-test.c
+1
-1
gst-libs/gst/media-info/media-info.c
gst-libs/gst/media-info/media-info.c
+51
-50
gst-libs/gst/mixer/mixer.c
gst-libs/gst/mixer/mixer.c
+20
-20
gst-libs/gst/mixer/mixertrack.c
gst-libs/gst/mixer/mixertrack.c
+5
-5
gst-libs/gst/navigation/navigation.c
gst-libs/gst/navigation/navigation.c
+4
-4
gst-libs/gst/play/play.c
gst-libs/gst/play/play.c
+110
-110
gst-libs/gst/propertyprobe/propertyprobe.c
gst-libs/gst/propertyprobe/propertyprobe.c
+6
-6
gst-libs/gst/resample/dtos.c
gst-libs/gst/resample/dtos.c
+3
-2
gst-libs/gst/resample/resample.c
gst-libs/gst/resample/resample.c
+44
-44
gst-libs/gst/resample/test.c
gst-libs/gst/resample/test.c
+3
-3
gst-libs/gst/riff/riff-media.c
gst-libs/gst/riff/riff-media.c
+91
-91
gst-libs/gst/riff/riff-read.c
gst-libs/gst/riff/riff-read.c
+84
-83
gst-libs/gst/tuner/tuner.c
gst-libs/gst/tuner/tuner.c
+28
-28
gst-libs/gst/tuner/tunerchannel.c
gst-libs/gst/tuner/tunerchannel.c
+4
-4
gst-libs/gst/tuner/tunernorm.c
gst-libs/gst/tuner/tunernorm.c
+2
-2
gst-libs/gst/video/gstvideofilter.c
gst-libs/gst/video/gstvideofilter.c
+20
-19
gst-libs/gst/video/gstvideosink.c
gst-libs/gst/video/gstvideosink.c
+1
-1
gst-libs/gst/video/video.c
gst-libs/gst/video/video.c
+4
-4
gst-libs/gst/xoverlay/xoverlay.c
gst-libs/gst/xoverlay/xoverlay.c
+12
-12
gst-libs/gst/xwindowlistener/xwindowlistener.c
gst-libs/gst/xwindowlistener/xwindowlistener.c
+83
-83
gst/adder/gstadder.c
gst/adder/gstadder.c
+78
-77
gst/audioconvert/gstaudioconvert.c
gst/audioconvert/gstaudioconvert.c
+78
-78
gst/audioscale/gstaudioscale.c
gst/audioscale/gstaudioscale.c
+13
-11
gst/ffmpegcolorspace/gstffmpegcodecmap.c
gst/ffmpegcolorspace/gstffmpegcodecmap.c
+50
-50
gst/ffmpegcolorspace/gstffmpegcolorspace.c
gst/ffmpegcolorspace/gstffmpegcolorspace.c
+10
-10
gst/ffmpegcolorspace/imgconvert.c
gst/ffmpegcolorspace/imgconvert.c
+366
-366
gst/sine/gstsinesrc.c
gst/sine/gstsinesrc.c
+37
-36
gst/tags/gstid3tag.c
gst/tags/gstid3tag.c
+6
-6
gst/tags/gsttagediting.c
gst/tags/gsttagediting.c
+1
-1
gst/tags/gstvorbistag.c
gst/tags/gstvorbistag.c
+101
-100
gst/tcp/gsttcp.c
gst/tcp/gsttcp.c
+1
-1
gst/tcp/gsttcpplugin.c
gst/tcp/gsttcpplugin.c
+1
-1
gst/tcp/gsttcpsink.c
gst/tcp/gsttcpsink.c
+28
-26
gst/tcp/gsttcpsrc.c
gst/tcp/gsttcpsrc.c
+72
-70
gst/typefind/gsttypefindfunctions.c
gst/typefind/gsttypefindfunctions.c
+184
-183
gst/videoscale/gstvideoscale.c
gst/videoscale/gstvideoscale.c
+21
-19
gst/videoscale/videoscale.c
gst/videoscale/videoscale.c
+42
-42
gst/videoscale/videoscale_x86.c
gst/videoscale/videoscale_x86.c
+1
-1
gst/videotestsrc/gstvideotestsrc.c
gst/videotestsrc/gstvideotestsrc.c
+26
-26
gst/videotestsrc/videotestsrc.c
gst/videotestsrc/videotestsrc.c
+21
-21
gst/volume/gstvolume.c
gst/volume/gstvolume.c
+39
-39
sys/v4l/gstv4l.c
sys/v4l/gstv4l.c
+4
-4
sys/v4l/gstv4lcolorbalance.c
sys/v4l/gstv4lcolorbalance.c
+4
-4
sys/v4l/gstv4lelement.c
sys/v4l/gstv4lelement.c
+33
-33
sys/v4l/gstv4lmjpegsink.c
sys/v4l/gstv4lmjpegsink.c
+23
-22
sys/v4l/gstv4lmjpegsrc.c
sys/v4l/gstv4lmjpegsrc.c
+82
-81
sys/v4l/gstv4lsrc.c
sys/v4l/gstv4lsrc.c
+118
-117
sys/v4l/gstv4ltuner.c
sys/v4l/gstv4ltuner.c
+9
-9
sys/v4l/gstv4lxoverlay.c
sys/v4l/gstv4lxoverlay.c
+2
-2
sys/v4l/v4l-overlay_calls.c
sys/v4l/v4l-overlay_calls.c
+6
-6
sys/v4l/v4l_calls.c
sys/v4l/v4l_calls.c
+56
-56
sys/v4l/v4lmjpegsink_calls.c
sys/v4l/v4lmjpegsink_calls.c
+24
-24
sys/v4l/v4lmjpegsrc_calls.c
sys/v4l/v4lmjpegsrc_calls.c
+34
-34
sys/v4l/v4lsrc_calls.c
sys/v4l/v4lsrc_calls.c
+33
-33
sys/ximage/ximagesink.c
sys/ximage/ximagesink.c
+136
-136
sys/xvimage/xvimagesink.c
sys/xvimage/xvimagesink.c
+214
-214
tests/examples/seek/seek.c
tests/examples/seek/seek.c
+27
-24
tests/examples/seek/spider_seek.c
tests/examples/seek/spider_seek.c
+13
-12
tests/examples/seek/vorbisfile.c
tests/examples/seek/vorbisfile.c
+12
-12
tests/old/examples/capsfilter/capsfilter1.c
tests/old/examples/capsfilter/capsfilter1.c
+1
-1
tests/old/examples/dynparams/filter.c
tests/old/examples/dynparams/filter.c
+49
-49
tests/old/examples/gstplay/player.c
tests/old/examples/gstplay/player.c
+1
-1
tests/old/examples/indexing/indexmpeg.c
tests/old/examples/indexing/indexmpeg.c
+15
-14
tests/old/examples/seek/cdparanoia.c
tests/old/examples/seek/cdparanoia.c
+12
-12
tests/old/examples/seek/cdplayer.c
tests/old/examples/seek/cdplayer.c
+10
-9
tests/old/examples/seek/spider_seek.c
tests/old/examples/seek/spider_seek.c
+13
-12
tests/old/examples/seek/vorbisfile.c
tests/old/examples/seek/vorbisfile.c
+12
-12
tests/old/examples/stats/mp2ogg.c
tests/old/examples/stats/mp2ogg.c
+9
-9
tests/old/testsuite/alsa/formats.c
tests/old/testsuite/alsa/formats.c
+39
-39
tests/old/testsuite/alsa/sinesrc.c
tests/old/testsuite/alsa/sinesrc.c
+116
-115
tests/old/testsuite/alsa/state.c
tests/old/testsuite/alsa/state.c
+2
-2
testsuite/alsa/formats.c
testsuite/alsa/formats.c
+39
-39
testsuite/alsa/sinesrc.c
testsuite/alsa/sinesrc.c
+116
-115
testsuite/alsa/state.c
testsuite/alsa/state.c
+2
-2
No files found.
ChangeLog
View file @
f83cb187
2004
-
03
-
15
Thomas
Vander
Stichele
<
thomas
at
apestaart
dot
org
>
*
*.
c
,
*.
cc
:
don
't mix tabs and spaces
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
* gst-libs/gst/play/play.c: (gst_play_pipeline_setup):
...
...
examples/capsfilter/capsfilter1.c
View file @
f83cb187
...
...
@@ -72,7 +72,7 @@ main (gint argc, gchar * argv[])
/* force RGB data passing between colorspace and xvideosink */
res
=
gst_element_link_filtered
(
colorspace
,
"src"
,
xvideosink
,
"sink"
,
GST_CAPS_NEW
(
"filtercaps"
,
"video/raw"
,
"format"
,
GST_PROPS_FOURCC
(
GST_STR_FOURCC
(
"RGB "
))
"video/raw"
,
"format"
,
GST_PROPS_FOURCC
(
GST_STR_FOURCC
(
"RGB "
))
));
if
(
!
res
)
{
g_print
(
"could not connect colorspace and xvideosink
\n
"
);
...
...
examples/dynparams/filter.c
View file @
f83cb187
...
...
@@ -15,17 +15,17 @@
/* filter UI data */
struct
_filter_ui
{
GtkWidget
*
window
;
/* top-level interface window */
GtkWidget
*
window
;
/* top-level interface window */
GtkWidget
*
buttons
;
/* all of the control buttons */
GtkWidget
*
parse
,
*
play
,
*
stop
;
/* control buttons */
GtkWidget
*
buttons
;
/* all of the control buttons */
GtkWidget
*
parse
,
*
play
,
*
stop
;
/* control buttons */
GtkWidget
*
feedback
;
/* here's where we'll tell you stuff */
GtkTextBuffer
*
fb_buffer
;
/* feedback buffer */
GtkWidget
*
selection
;
/* the place to input element stuff */
GtkWidget
*
input
,
*
filter
,
*
output
;
/* the selection widgets */
GtkWidget
*
feedback
;
/* here's where we'll tell you stuff */
GtkTextBuffer
*
fb_buffer
;
/* feedback buffer */
GtkWidget
*
selection
;
/* the place to input element stuff */
GtkWidget
*
input
,
*
filter
,
*
output
;
/* the selection widgets */
GtkWidget
*
control
;
/* the dynamically generated control UI */
GtkWidget
*
control
;
/* the dynamically generated control UI */
};
typedef
struct
_filter_ui
_filter_ui_t
;
...
...
@@ -33,13 +33,13 @@ typedef struct _filter_ui _filter_ui_t;
/* back-end data */
struct
_filter_data
{
_filter_ui_t
*
ui
;
/* the UI data */
_filter_ui_t
*
ui
;
/* the UI data */
gchar
*
input_pipe
,
*
output_pipe
,
*
filter_element
;
gchar
*
pipe_string
;
GList
*
filter_choices
;
gboolean
playing
;
GstElement
*
input
,
*
output
;
/* these are in and out bins */
GstElement
*
input
,
*
output
;
/* these are in and out bins */
GstElement
*
pipeline
;
GstElement
*
filter
;
};
...
...
@@ -75,21 +75,21 @@ gst_bin_find_unconnected_pad (GstBin * bin, GstPadDirection direction,
while
(
pads
)
{
/* check if the direction matches */
if
(
GST_PAD_DIRECTION
(
GST_PAD
(
pads
->
data
))
==
direction
)
{
if
(
GST_PAD_PEER
(
GST_PAD
(
pads
->
data
))
==
NULL
)
{
/* found it ! */
g_print
(
"DEBUG: found an unconnected pad !
\n
"
);
pad
=
GST_PAD
(
pads
->
data
);
}
if
(
GST_PAD_PEER
(
GST_PAD
(
pads
->
data
))
==
NULL
)
{
/* found it ! */
g_print
(
"DEBUG: found an unconnected pad !
\n
"
);
pad
=
GST_PAD
(
pads
->
data
);
}
}
if
(
pad
)
break
;
/* found one already */
break
;
/* found one already */
pads
=
g_list_next
(
pads
);
}
elements
=
g_list_next
(
elements
);
}
g_print
(
"DEBUG: find_unconnected stop
\n
"
);
if
(
pad
==
NULL
)
/* we didn't find it at all */
if
(
pad
==
NULL
)
/* we didn't find it at all */
return
NULL
;
pad
=
gst_ghost_pad_new
(
name
,
pad
);
...
...
@@ -157,37 +157,37 @@ ui_control_create (GstElement * element, GtkWidget * control, _filter_ui_t * ui)
gtk_container_add
(
GTK_CONTAINER
(
hbox
),
widget
);
gtk_widget_show
(
widget
);
switch
(
G_PARAM_SPEC_VALUE_TYPE
(
specs
[
i
]))
{
case
G_TYPE_INT64
:
widget
=
gtk_hscale_new_with_range
(
(
gdouble
)
(((
GParamSpecInt64
*
)
specs
[
i
])
->
minimum
),
(
gdouble
)
(((
GParamSpecInt64
*
)
specs
[
i
])
->
maximum
),
1
.
0
);
gtk_range_set_value
(
GTK_RANGE
(
widget
),
(
gdouble
)
((
GParamSpecInt64
*
)
specs
[
i
])
->
default_value
);
break
;
case
G_TYPE_INT
:
widget
=
gtk_hscale_new_with_range
(
(
gdouble
)
(((
GParamSpecInt
*
)
specs
[
i
])
->
minimum
),
(
gdouble
)
(((
GParamSpecInt
*
)
specs
[
i
])
->
maximum
),
1
.
0
);
gtk_range_set_value
(
GTK_RANGE
(
widget
),
(
gdouble
)
((
GParamSpecInt
*
)
specs
[
i
])
->
default_value
);
break
;
case
G_TYPE_FLOAT
:
widget
=
gtk_hscale_new_with_range
(
(
gdouble
)
(((
GParamSpecFloat
*
)
specs
[
i
])
->
minimum
),
(
gdouble
)
(((
GParamSpecFloat
*
)
specs
[
i
])
->
maximum
),
0
.
00001
);
gtk_range_set_value
(
GTK_RANGE
(
widget
),
(
gdouble
)
((
GParamSpecFloat
*
)
specs
[
i
])
->
default_value
);
break
;
case
G_TYPE_INT64
:
widget
=
gtk_hscale_new_with_range
(
(
gdouble
)
(((
GParamSpecInt64
*
)
specs
[
i
])
->
minimum
),
(
gdouble
)
(((
GParamSpecInt64
*
)
specs
[
i
])
->
maximum
),
1
.
0
);
gtk_range_set_value
(
GTK_RANGE
(
widget
),
(
gdouble
)
((
GParamSpecInt64
*
)
specs
[
i
])
->
default_value
);
break
;
case
G_TYPE_INT
:
widget
=
gtk_hscale_new_with_range
(
(
gdouble
)
(((
GParamSpecInt
*
)
specs
[
i
])
->
minimum
),
(
gdouble
)
(((
GParamSpecInt
*
)
specs
[
i
])
->
maximum
),
1
.
0
);
gtk_range_set_value
(
GTK_RANGE
(
widget
),
(
gdouble
)
((
GParamSpecInt
*
)
specs
[
i
])
->
default_value
);
break
;
case
G_TYPE_FLOAT
:
widget
=
gtk_hscale_new_with_range
(
(
gdouble
)
(((
GParamSpecFloat
*
)
specs
[
i
])
->
minimum
),
(
gdouble
)
(((
GParamSpecFloat
*
)
specs
[
i
])
->
maximum
),
0
.
00001
);
gtk_range_set_value
(
GTK_RANGE
(
widget
),
(
gdouble
)
((
GParamSpecFloat
*
)
specs
[
i
])
->
default_value
);
break
;
}
/* create the dparam object */
dparam
=
gst_dpsmooth_new
(
G_PARAM_SPEC_VALUE_TYPE
(
specs
[
i
]));
g_object_set
(
G_OBJECT
(
dparam
),
"update_period"
,
2000000LL
,
NULL
);
g_assert
(
gst_dpman_attach_dparam
(
dpman
,
(
gchar
*
)
g_param_spec_get_name
(
specs
[
i
]),
dparam
));
(
gchar
*
)
g_param_spec_get_name
(
specs
[
i
]),
dparam
));
gst_dpman_set_mode
(
dpman
,
"asynchronous"
);
g_signal_connect
(
widget
,
"value-changed"
,
G_CALLBACK
(
cb_dynparm_value_changed
),
dparam
);
G_CALLBACK
(
cb_dynparm_value_changed
),
dparam
);
cb_dynparm_value_changed
(
GTK_RANGE
(
widget
),
dparam
);
gtk_container_add
(
GTK_CONTAINER
(
hbox
),
widget
);
...
...
@@ -315,7 +315,7 @@ cb_parse_clicked (GtkButton * button, gpointer * user_data)
fd
->
input
=
GST_ELEMENT
(
gst_parse_launch
(
fd
->
input_pipe
,
&
error
));
if
(
error
)
{
ui_feedback_add
(
fd
->
ui
,
"Error : parsing input pipeline : %s
\n
"
,
error
->
message
);
error
->
message
);
g_error_free
(
error
);
return
;
}
...
...
@@ -329,7 +329,7 @@ cb_parse_clicked (GtkButton * button, gpointer * user_data)
fd
->
output
=
GST_ELEMENT
(
gst_parse_launch
(
fd
->
output_pipe
,
&
error
));
if
(
error
)
{
ui_feedback_add
(
fd
->
ui
,
"Error : parsing output pipeline : %s
\n
"
,
error
->
message
);
error
->
message
);
g_error_free
(
error
);
return
;
}
...
...
@@ -340,7 +340,7 @@ cb_parse_clicked (GtkButton * button, gpointer * user_data)
fd
->
filter
=
gst_element_factory_make
(
fd
->
filter_element
,
"filter"
);
if
(
fd
->
filter
==
NULL
)
{
ui_feedback_add
(
fd
->
ui
,
"Error : could not create element %s
\n
"
,
fd
->
filter_element
);
fd
->
filter_element
);
return
;
}
...
...
@@ -359,14 +359,14 @@ cb_parse_clicked (GtkButton * button, gpointer * user_data)
"source"
);
if
(
src_pad
==
NULL
)
{
ui_feedback_add
(
fd
->
ui
,
"Error : could not find an unconnected source pad !
\n
"
);
"Error : could not find an unconnected source pad !
\n
"
);
return
;
}
sink_pad
=
gst_bin_find_unconnected_pad
(
GST_BIN
(
fd
->
output
),
GST_PAD_SINK
,
"sink"
);
if
(
sink_pad
==
NULL
)
{
ui_feedback_add
(
fd
->
ui
,
"Error : could not find an unconnected sink pad !
\n
"
);
"Error : could not find an unconnected sink pad !
\n
"
);
return
;
}
gst_element_add_pad
(
fd
->
input
,
src_pad
);
...
...
@@ -417,8 +417,8 @@ init_data (_filter_data_t * fd)
void
create_ui
(
_filter_ui_t
*
fui
,
_filter_data_t
*
fd
)
{
GtkWidget
*
widget
;
/* temporary widget */
GtkWidget
*
vbox
;
/* temporary vbox */
GtkWidget
*
widget
;
/* temporary widget */
GtkWidget
*
vbox
;
/* temporary vbox */
g_print
(
"DEBUG: creating top-level window
\n
"
);
fui
->
window
=
gtk_window_new
(
GTK_WINDOW_TOPLEVEL
);
...
...
@@ -480,7 +480,7 @@ create_ui (_filter_ui_t * fui, _filter_data_t * fd)
widget
=
gtk_label_new
(
"Output Pipe"
);
gtk_container_add
(
GTK_CONTAINER
(
vbox
),
widget
);
fui
->
output
=
gtk_entry_new
();
gtk_entry_set_text
(
GTK_ENTRY
(
fui
->
output
),
"osssink fragment=1572872"
);
/* fixme: gconf default ? */
gtk_entry_set_text
(
GTK_ENTRY
(
fui
->
output
),
"osssink fragment=1572872"
);
/* fixme: gconf default ? */
gtk_container_add
(
GTK_CONTAINER
(
vbox
),
fui
->
output
);
gtk_container_add
(
GTK_CONTAINER
(
fui
->
selection
),
vbox
);
g_signal_connect
(
G_OBJECT
(
fui
->
output
),
"activate"
,
...
...
examples/gstplay/player.c
View file @
f83cb187
...
...
@@ -36,7 +36,7 @@ print_tag (const GstTagList * list, const gchar * tag, gpointer unused)
g_assert
(
gst_tag_list_get_string_index
(
list
,
tag
,
i
,
&
str
));
}
else
{
str
=
g_strdup_value_contents
(
gst_tag_list_get_value_index
(
list
,
tag
,
i
));
g_strdup_value_contents
(
gst_tag_list_get_value_index
(
list
,
tag
,
i
));
}
if
(
i
==
0
)
{
...
...
examples/indexing/indexmpeg.c
View file @
f83cb187
...
...
@@ -29,21 +29,21 @@ entry_added (GstIndex * index, GstIndexEntry * entry)
switch
(
entry
->
type
)
{
case
GST_INDEX_ENTRY_ID
:
g_print
(
"id %d describes writer %s
\n
"
,
entry
->
id
,
GST_INDEX_ID_DESCRIPTION
(
entry
));
GST_INDEX_ID_DESCRIPTION
(
entry
));
break
;
case
GST_INDEX_ENTRY_FORMAT
:
g_print
(
"%d: registered format %d for %s
\n
"
,
entry
->
id
,
GST_INDEX_FORMAT_FORMAT
(
entry
),
GST_INDEX_FORMAT_KEY
(
entry
));
GST_INDEX_FORMAT_FORMAT
(
entry
),
GST_INDEX_FORMAT_KEY
(
entry
));
break
;
case
GST_INDEX_ENTRY_ASSOCIATION
:
{
gint
i
;
g_print
(
"%p, %d: %08x "
,
entry
,
entry
->
id
,
GST_INDEX_ASSOC_FLAGS
(
entry
));
GST_INDEX_ASSOC_FLAGS
(
entry
));
for
(
i
=
0
;
i
<
GST_INDEX_NASSOCS
(
entry
);
i
++
)
{
g_print
(
"%d %lld "
,
GST_INDEX_ASSOC_FORMAT
(
entry
,
i
),
GST_INDEX_ASSOC_VALUE
(
entry
,
i
));
g_print
(
"%d %lld "
,
GST_INDEX_ASSOC_FORMAT
(
entry
,
i
),
GST_INDEX_ASSOC_VALUE
(
entry
,
i
));
}
g_print
(
"
\n
"
);
break
;
...
...
@@ -60,7 +60,8 @@ typedef struct
GstElement
*
bin
;
GstElement
*
pipeline
;
GstIndex
*
index
;
}
dyn_link
;
}
dyn_link
;
static
void
dynamic_link
(
GstPadTemplate
*
templ
,
GstPad
*
newpad
,
gpointer
data
)
...
...
@@ -205,18 +206,18 @@ main (gint argc, gchar * argv[])
GstElement
*
sink
;
struct
poptOption
options
[]
=
{
{
"verbose"
,
'v'
,
POPT_ARG_NONE
|
POPT_ARGFLAG_STRIP
,
&
verbose
,
0
,
"Print index entries"
,
NULL
},
"Print index entries"
,
NULL
},
{
"quiet"
,
'q'
,
POPT_ARG_NONE
|
POPT_ARGFLAG_STRIP
,
&
quiet
,
0
,
"don't print progress bar"
,
NULL
},
"don't print progress bar"
,
NULL
},
POPT_TABLEEND
};
if
(
!
gst_init_check_with_popt_table
(
&
argc
,
&
argv
,
options
)
||
argc
<
3
)
{
g_print
(
"usage: %s [-v] <type> <filename>
\n
"
" type can be: 0 mpeg_systems
\n
"
" 1 mpeg_decoder
\n
"
" -v : report added index entries
\n
"
" -q : don't print progress
\n
"
,
argv
[
0
]);
" type can be: 0 mpeg_systems
\n
"
" 1 mpeg_decoder
\n
"
" -v : report added index entries
\n
"
" -q : don't print progress
\n
"
,
argv
[
0
]);
return
-
1
;
}
...
...
@@ -225,7 +226,7 @@ main (gint argc, gchar * argv[])
if
(
index
)
{
if
(
verbose
)
g_signal_connect
(
G_OBJECT
(
index
),
"entry_added"
,
G_CALLBACK
(
entry_added
),
NULL
);
G_CALLBACK
(
entry_added
),
NULL
);
g_object_set
(
G_OBJECT
(
index
),
"resolver"
,
1
,
NULL
);
}
...
...
@@ -284,7 +285,7 @@ main (gint argc, gchar * argv[])
gst_index_get_writer_id
(
index
,
GST_OBJECT
(
src
),
&
id
);
entry
=
gst_index_get_assoc_entry
(
index
,
id
,
GST_INDEX_LOOKUP_BEFORE
,
0
,
GST_FORMAT_TIME
,
G_MAXINT64
);
GST_FORMAT_TIME
,
G_MAXINT64
);
g_assert
(
entry
);
gst_index_entry_assoc_map
(
entry
,
GST_FORMAT_TIME
,
&
result
);
total_tm
=
result
*
60
/
GST_SECOND
;
...
...
examples/seeking/cdparanoia.c
View file @
f83cb187
...
...
@@ -29,7 +29,7 @@ get_position_info (GstElement * cdparanoia)
if
(
format
==
GST_FORMAT_TIME
)
{
position
/=
GST_SECOND
;
g_print
(
"%s: %lld:%02lld"
,
definition
->
nick
,
position
/
60
,
position
%
60
);
position
%
60
);
}
else
{
g_print
(
"%s: %lld"
,
definition
->
nick
,
position
);
}
...
...
@@ -72,16 +72,16 @@ get_track_info (GstElement * cdparanoia)
res
=
gst_pad_query
(
pad
,
GST_QUERY_TOTAL
,
&
format
,
&
total
);
if
(
res
)
{
if
(
format
==
GST_FORMAT_TIME
)
{
total
/=
GST_SECOND
;
g_print
(
"%s total: %lld:%02lld
\n
"
,
definition
->
nick
,
total
/
60
,
total
%
60
);
total
/=
GST_SECOND
;
g_print
(
"%s total: %lld:%02lld
\n
"
,
definition
->
nick
,
total
/
60
,
total
%
60
);
}
else
g_print
(
"%s total: %lld
\n
"
,
definition
->
nick
,
total
);
g_print
(
"%s total: %lld
\n
"
,
definition
->
nick
,
total
);
if
(
format
==
track_format
)
total_tracks
=
total
;
total_tracks
=
total
;
else
if
(
format
==
GST_FORMAT_TIME
)
total_time
=
total
;
total_time
=
total
;
}
else
g_print
(
"failed to get %s total
\n
"
,
definition
->
nick
);
...
...
@@ -110,12 +110,12 @@ get_track_info (GstElement * cdparanoia)
/* for the first track (i==0) we wait until we have the
* time of the next track */
if
(
i
>
0
)
{
gint64
length
=
time
-
time_count
;
gint64
length
=
time
-
time_count
;
g_print
(
"track %d: %lld:%02lld -> %lld:%02lld, length: %lld:%02lld
\n
"
,
i
-
1
,
time_count
/
60
,
time_count
%
60
,
time
/
60
,
time
%
60
,
length
/
60
,
length
%
60
);
g_print
(
"track %d: %lld:%02lld -> %lld:%02lld, length: %lld:%02lld
\n
"
,
i
-
1
,
time_count
/
60
,
time_count
%
60
,
time
/
60
,
time
%
60
,
length
/
60
,
length
%
60
);
}
}
else
{
g_print
(
"could not get time for track %d
\n
"
,
i
);
...
...
examples/seeking/cdplayer.c
View file @
f83cb187
...
...
@@ -47,7 +47,8 @@ typedef struct
{
const
gchar
*
name
;
const
GstFormat
format
;
}
seek_format
;
}
seek_format
;
static
seek_format
seek_formats
[]
=
{
{
"tim"
,
GST_FORMAT_TIME
},
...
...
@@ -76,9 +77,9 @@ query_durations ()
format
=
seek_formats
[
i
].
format
;
res
=
gst_element_query
(
element
,
GST_QUERY_TOTAL
,
&
format
,
&
value
);
if
(
res
)
{
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
}
else
{
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
}
i
++
;
}
...
...
@@ -105,9 +106,9 @@ query_positions ()
format
=
seek_formats
[
i
].
format
;
res
=
gst_element_query
(
element
,
GST_QUERY_POSITION
,
&
format
,
&
value
);
if
(
res
)
{
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
}
else
{
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
}
i
++
;
}
...
...
@@ -137,7 +138,7 @@ update_scale (gpointer data)
if
(
stats
)
{
if
(
clock
)
g_print
(
"clock: %13llu (%s)
\n
"
,
position
,
gst_object_get_name
(
GST_OBJECT
(
clock
)));
gst_object_get_name
(
GST_OBJECT
(
clock
)));
query_durations
();
query_positions
();
}
...
...
@@ -184,7 +185,7 @@ stop_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data)
g_print
(
"seek to %lld on element %s
\n
"
,
real
,
GST_ELEMENT_NAME
(
seekable
));
s_event
=
gst_event_new_seek
(
GST_FORMAT_TIME
|
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
real
);
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
real
);
res
=
gst_element_send_event
(
seekable
,
s_event
);
...
...
@@ -208,7 +209,7 @@ play_cb (GtkButton * button, gpointer data)
if
(
!
GST_FLAG_IS_SET
(
pipeline
,
GST_BIN_SELF_SCHEDULABLE
))
gtk_idle_add
((
GtkFunction
)
iterate
,
pipeline
);
update_id
=
gtk_timeout_add
(
UPDATE_INTERVAL
,
(
GtkFunction
)
update_scale
,
pipeline
);
gtk_timeout_add
(
UPDATE_INTERVAL
,
(
GtkFunction
)
update_scale
,
pipeline
);
}
}
...
...
@@ -237,7 +238,7 @@ main (int argc, char **argv)
*
play_button
,
*
pause_button
,
*
stop_button
,
*
hscale
;
struct
poptOption
options
[]
=
{
{
"stats"
,
's'
,
POPT_ARG_NONE
|
POPT_ARGFLAG_STRIP
,
&
stats
,
0
,
"Show element stats"
,
NULL
},
"Show element stats"
,
NULL
},
POPT_TABLEEND
};
...
...
examples/seeking/seek.c
View file @
f83cb187
...
...
@@ -28,7 +28,8 @@ typedef struct
const
gchar
*
padname
;
GstPad
*
target
;
GstElement
*
bin
;
}
dyn_link
;
}
dyn_link
;
static
GstElement
*
gst_element_factory_make_or_warn
(
gchar
*
type
,
gchar
*
name
)
...
...
@@ -372,7 +373,7 @@ make_avi_pipeline (const gchar * location)
gst_element_set_state
(
audio_bin
,
GST_STATE_PAUSED
);
setup_dynamic_link
(
demux
,
"audio_00"
,
gst_element_get_pad
(
a_decoder
,
"sink"
),
audio_bin
);
"sink"
),
audio_bin
);
seekable
=
gst_element_get_pad
(
a_queue
,
"src"
);
seekable_pads
=
g_list_prepend
(
seekable_pads
,
seekable
);
...
...
@@ -400,7 +401,7 @@ make_avi_pipeline (const gchar * location)
gst_element_set_state
(
video_bin
,
GST_STATE_PAUSED
);
setup_dynamic_link
(
demux
,
"video_00"
,
gst_element_get_pad
(
v_decoder
,
"sink"
),
video_bin
);
"sink"
),
video_bin
);
seekable
=
gst_element_get_pad
(
v_queue
,
"src"
);
seekable_pads
=
g_list_prepend
(
seekable_pads
,
seekable
);
...
...
@@ -448,7 +449,7 @@ make_mpeg_pipeline (const gchar * location)
gst_bin_add
(
GST_BIN
(
audio_thread
),
audiosink
);
setup_dynamic_link
(
demux
,
"audio_00"
,
gst_element_get_pad
(
a_decoder
,
"sink"
),
audio_bin
);
"sink"
),
audio_bin
);
seekable
=
gst_element_get_pad
(
a_queue
,
"src"
);
seekable_pads
=
g_list_prepend
(
seekable_pads
,
seekable
);
...
...
@@ -470,7 +471,7 @@ make_mpeg_pipeline (const gchar * location)
gst_bin_add_many
(
GST_BIN
(
video_thread
),
v_queue
,
v_filter
,
videosink
,
NULL
);
setup_dynamic_link
(
demux
,
"video_00"
,
gst_element_get_pad
(
v_decoder
,
"sink"
),
video_bin
);
"sink"
),
video_bin
);
seekable
=
gst_element_get_pad
(
v_queue
,
"src"
);
seekable_pads
=
g_list_prepend
(
seekable_pads
,
seekable
);
...
...
@@ -519,7 +520,7 @@ make_mpegnt_pipeline (const gchar * location)
gst_bin_add
(
GST_BIN
(
audio_thread
),
audiosink
);
setup_dynamic_link
(
demux
,
"audio_00"
,
gst_element_get_pad
(
a_decoder
,
"sink"
),
audio_bin
);
"sink"
),
audio_bin
);
seekable
=
gst_element_get_pad
(
a_queue
,
"src"
);
seekable_pads
=
g_list_prepend
(
seekable_pads
,
seekable
);
...
...
@@ -536,7 +537,7 @@ make_mpegnt_pipeline (const gchar * location)
gst_bin_add_many
(
GST_BIN
(
video_bin
),
v_decoder
,
v_filter
,
videosink
,
NULL
);
setup_dynamic_link
(
demux
,
"video_00"
,
gst_element_get_pad
(
v_decoder
,
"sink"
),
video_bin
);
"sink"
),
video_bin
);
seekable
=
gst_element_get_pad
(
v_decoder
,
"src"
);
seekable_pads
=
g_list_prepend
(
seekable_pads
,
seekable
);
...
...
@@ -572,7 +573,8 @@ typedef struct
{
const
gchar
*
name
;
const
GstFormat
format
;
}
seek_format
;
}
seek_format
;
static
seek_format
seek_formats
[]
=
{
{
"tim"
,
GST_FORMAT_TIME
},
...
...
@@ -599,9 +601,9 @@ query_rates (void)
format
=
seek_formats
[
i
].
format
;
if
(
gst_pad_convert
(
pad
,
GST_FORMAT_TIME
,
GST_SECOND
,
&
format
,
&
value
))
{
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
}
else
{
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
}
i
++
;
...
...
@@ -630,9 +632,9 @@ query_durations ()
format
=
seek_formats
[
i
].
format
;
res
=
gst_pad_query
(
pad
,
GST_QUERY_TOTAL
,
&
format
,
&
value
);
if
(
res
)
{
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
}
else
{
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
}
i
++
;
}
...
...
@@ -660,9 +662,9 @@ query_positions ()
format
=
seek_formats
[
i
].
format
;
res
=
gst_pad_query
(
pad
,
GST_QUERY_POSITION
,
&
format
,
&
value
);
if
(
res
)
{
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
g_print
(
"%s %13lld | "
,
seek_formats
[
i
].
name
,
value
);
}
else
{
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
g_print
(
"%s %13.13s | "
,
seek_formats
[
i
].
name
,
"*NA*"
);
}
i
++
;
}
...
...
@@ -691,7 +693,7 @@ update_scale (gpointer data)
if
(
stats
)
{
g_print
(
"clock: %13llu (%s)
\n
"
,
position
,
gst_object_get_name
(
GST_OBJECT
(
clock
)));
gst_object_get_name
(
GST_OBJECT
(
clock
)));
query_durations
();
query_positions
();
query_rates
();
...
...
@@ -740,10 +742,10 @@ stop_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data)
GstPad
*
seekable
=
GST_PAD
(
walk
->
data
);
g_print
(
"seek to %lld on pad %s:%s
\n
"
,
real
,
GST_DEBUG_PAD_NAME
(
seekable
));
GST_DEBUG_PAD_NAME
(
seekable
));
s_event
=
gst_event_new_seek
(
GST_FORMAT_TIME
|
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
real
);
gst_event_new_seek
(
GST_FORMAT_TIME
|
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
real
);
res
=
gst_pad_send_event
(
seekable
,
s_event
);
...
...
@@ -756,10 +758,10 @@ stop_seek (GtkWidget * widget, GdkEventButton * event, gpointer user_data)
GstElement
*
seekable
=
GST_ELEMENT
(
walk
->
data
);
g_print
(
"seek to %lld on element %s
\n
"
,
real
,
gst_element_get_name
(
seekable
));
gst_element_get_name
(
seekable
));
s_event
=
gst_event_new_seek
(
GST_FORMAT_TIME
|
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
real
);
gst_event_new_seek
(
GST_FORMAT_TIME
|
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
real
);
res
=
gst_element_send_event
(
seekable
,
s_event
);
...
...
@@ -782,7 +784,7 @@ play_cb (GtkButton * button, gpointer data)
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
);
gtk_idle_add
((
GtkFunction
)
iterate
,
pipeline
);
update_id
=
gtk_timeout_add
(
UPDATE_INTERVAL
,
(
GtkFunction
)
update_scale
,
pipeline
);
gtk_timeout_add
(
UPDATE_INTERVAL
,
(
GtkFunction
)
update_scale
,
pipeline
);
}