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
4df3f188
Commit
4df3f188
authored
Mar 14, 2004
by
Thomas Vander Stichele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gst-indent
Original commit message from CVS: gst-indent
parent
e9bef8b9
Changes
215
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
215 changed files
with
18048 additions
and
18701 deletions
+18048
-18701
ChangeLog
ChangeLog
+4
-0
examples/capsfilter/capsfilter1.c
examples/capsfilter/capsfilter1.c
+9
-10
examples/dynparams/filter.c
examples/dynparams/filter.c
+141
-153
examples/gstplay/player.c
examples/gstplay/player.c
+22
-24
examples/indexing/indexmpeg.c
examples/indexing/indexmpeg.c
+68
-73
examples/seeking/cdparanoia.c
examples/seeking/cdparanoia.c
+25
-35
examples/seeking/cdplayer.c
examples/seeking/cdplayer.c
+53
-51
examples/seeking/seek.c
examples/seeking/seek.c
+154
-137
examples/seeking/spider_seek.c
examples/seeking/spider_seek.c
+63
-64
examples/seeking/vorbisfile.c
examples/seeking/vorbisfile.c
+38
-43
examples/stats/mp2ogg.c
examples/stats/mp2ogg.c
+19
-22
examples/switch/switcher.c
examples/switch/switcher.c
+23
-26
ext/alsa/gstalsa.c
ext/alsa/gstalsa.c
+518
-445
ext/alsa/gstalsa.h
ext/alsa/gstalsa.h
+63
-66
ext/alsa/gstalsaclock.c
ext/alsa/gstalsaclock.c
+52
-43
ext/alsa/gstalsaclock.h
ext/alsa/gstalsaclock.h
+15
-17
ext/alsa/gstalsamixer.c
ext/alsa/gstalsamixer.c
+112
-113
ext/alsa/gstalsamixer.h
ext/alsa/gstalsamixer.h
+9
-10
ext/alsa/gstalsamixertrack.c
ext/alsa/gstalsamixertrack.c
+19
-17
ext/alsa/gstalsamixertrack.h
ext/alsa/gstalsamixertrack.h
+12
-15
ext/alsa/gstalsaplugin.c
ext/alsa/gstalsaplugin.c
+11
-14
ext/alsa/gstalsasink.c
ext/alsa/gstalsasink.c
+192
-161
ext/alsa/gstalsasink.h
ext/alsa/gstalsasink.h
+11
-12
ext/alsa/gstalsasrc.c
ext/alsa/gstalsasrc.c
+104
-90
ext/alsa/gstalsasrc.h
ext/alsa/gstalsasrc.h
+7
-8
ext/cdparanoia/gstcdparanoia.c
ext/cdparanoia/gstcdparanoia.c
+380
-399
ext/cdparanoia/gstcdparanoia.h
ext/cdparanoia/gstcdparanoia.h
+72
-68
ext/gnomevfs/gstgnomevfs.c
ext/gnomevfs/gstgnomevfs.c
+11
-19
ext/gnomevfs/gstgnomevfs.h
ext/gnomevfs/gstgnomevfs.h
+1
-5
ext/gnomevfs/gstgnomevfssink.c
ext/gnomevfs/gstgnomevfssink.c
+97
-89
ext/gnomevfs/gstgnomevfssrc.c
ext/gnomevfs/gstgnomevfssrc.c
+1017
-1034
ext/ogg/gstoggdemux.c
ext/ogg/gstoggdemux.c
+280
-235
ext/pango/gsttextoverlay.c
ext/pango/gsttextoverlay.c
+448
-453
ext/pango/gsttextoverlay.h
ext/pango/gsttextoverlay.h
+38
-35
ext/pango/gsttimeoverlay.c
ext/pango/gsttimeoverlay.c
+86
-84
ext/pango/gsttimeoverlay.h
ext/pango/gsttimeoverlay.h
+5
-7
ext/theora/theoradec.c
ext/theora/theoradec.c
+164
-142
ext/vorbis/vorbis.c
ext/vorbis/vorbis.c
+12
-14
ext/vorbis/vorbisdec.c
ext/vorbis/vorbisdec.c
+108
-96
ext/vorbis/vorbisdec.h
ext/vorbis/vorbisdec.h
+24
-21
ext/vorbis/vorbisenc.c
ext/vorbis/vorbisenc.c
+270
-267
ext/vorbis/vorbisenc.h
ext/vorbis/vorbisenc.h
+42
-40
gst-libs/gst/audio/audio.c
gst-libs/gst/audio/audio.c
+70
-74
gst-libs/gst/audio/audio.h
gst-libs/gst/audio/audio.h
+18
-26
gst-libs/gst/audio/audioclock.c
gst-libs/gst/audio/audioclock.c
+46
-44
gst-libs/gst/audio/audioclock.h
gst-libs/gst/audio/audioclock.h
+11
-11
gst-libs/gst/audio/gstaudiofilter.c
gst-libs/gst/audio/gstaudiofilter.c
+95
-93
gst-libs/gst/audio/gstaudiofilter.h
gst-libs/gst/audio/gstaudiofilter.h
+14
-15
gst-libs/gst/audio/gstaudiofiltertemplate.c
gst-libs/gst/audio/gstaudiofiltertemplate.c
+58
-54
gst-libs/gst/colorbalance/colorbalance.c
gst-libs/gst/colorbalance/colorbalance.c
+23
-27
gst-libs/gst/colorbalance/colorbalance.h
gst-libs/gst/colorbalance/colorbalance.h
+19
-27
gst-libs/gst/colorbalance/colorbalancechannel.c
gst-libs/gst/colorbalance/colorbalancechannel.c
+16
-16
gst-libs/gst/colorbalance/colorbalancechannel.h
gst-libs/gst/colorbalance/colorbalancechannel.h
+8
-11
gst-libs/gst/floatcast/floatcast.h
gst-libs/gst/floatcast/floatcast.h
+24
-33
gst-libs/gst/gconf/gconf.c
gst-libs/gst/gconf/gconf.c
+32
-38
gst-libs/gst/gconf/gconf.h
gst-libs/gst/gconf/gconf.h
+9
-10
gst-libs/gst/gconf/test-gconf.c
gst-libs/gst/gconf/test-gconf.c
+8
-8
gst-libs/gst/gst-i18n-plugin.h
gst-libs/gst/gst-i18n-plugin.h
+2
-2
gst-libs/gst/idct/dct.h
gst-libs/gst/idct/dct.h
+2
-3
gst-libs/gst/idct/fastintidct.c
gst-libs/gst/idct/fastintidct.c
+80
-76
gst-libs/gst/idct/floatidct.c
gst-libs/gst/idct/floatidct.c
+21
-21
gst-libs/gst/idct/idct.c
gst-libs/gst/idct/idct.c
+90
-70
gst-libs/gst/idct/idct.h
gst-libs/gst/idct/idct.h
+13
-10
gst-libs/gst/idct/ieeetest.c
gst-libs/gst/idct/ieeetest.c
+160
-133
gst-libs/gst/idct/intidct.c
gst-libs/gst/idct/intidct.c
+95
-110
gst-libs/gst/idct/mmx32idct.c
gst-libs/gst/idct/mmx32idct.c
+447
-546
gst-libs/gst/interfaces/colorbalance.c
gst-libs/gst/interfaces/colorbalance.c
+23
-27
gst-libs/gst/interfaces/colorbalance.h
gst-libs/gst/interfaces/colorbalance.h
+19
-27
gst-libs/gst/interfaces/colorbalancechannel.c
gst-libs/gst/interfaces/colorbalancechannel.c
+16
-16
gst-libs/gst/interfaces/colorbalancechannel.h
gst-libs/gst/interfaces/colorbalancechannel.h
+8
-11
gst-libs/gst/interfaces/mixer.c
gst-libs/gst/interfaces/mixer.c
+43
-64
gst-libs/gst/interfaces/mixer.h
gst-libs/gst/interfaces/mixer.h
+30
-51
gst-libs/gst/interfaces/mixertrack.c
gst-libs/gst/interfaces/mixertrack.c
+27
-27
gst-libs/gst/interfaces/mixertrack.h
gst-libs/gst/interfaces/mixertrack.h
+19
-25
gst-libs/gst/interfaces/navigation.c
gst-libs/gst/interfaces/navigation.c
+15
-21
gst-libs/gst/interfaces/navigation.h
gst-libs/gst/interfaces/navigation.h
+11
-12
gst-libs/gst/interfaces/propertyprobe.c
gst-libs/gst/interfaces/propertyprobe.c
+32
-33
gst-libs/gst/interfaces/propertyprobe.h
gst-libs/gst/interfaces/propertyprobe.h
+31
-37
gst-libs/gst/interfaces/tuner.c
gst-libs/gst/interfaces/tuner.c
+56
-77
gst-libs/gst/interfaces/tuner.h
gst-libs/gst/interfaces/tuner.h
+42
-65
gst-libs/gst/interfaces/tunerchannel.c
gst-libs/gst/interfaces/tunerchannel.c
+19
-21
gst-libs/gst/interfaces/tunerchannel.h
gst-libs/gst/interfaces/tunerchannel.h
+17
-21
gst-libs/gst/interfaces/tunernorm.c
gst-libs/gst/interfaces/tunernorm.c
+10
-9
gst-libs/gst/interfaces/tunernorm.h
gst-libs/gst/interfaces/tunernorm.h
+7
-8
gst-libs/gst/interfaces/xoverlay.c
gst-libs/gst/interfaces/xoverlay.c
+38
-38
gst-libs/gst/interfaces/xoverlay.h
gst-libs/gst/interfaces/xoverlay.h
+17
-22
gst-libs/gst/media-info/media-info-priv.c
gst-libs/gst/media-info/media-info-priv.c
+179
-199
gst-libs/gst/media-info/media-info-priv.h
gst-libs/gst/media-info/media-info-priv.h
+52
-56
gst-libs/gst/media-info/media-info-test.c
gst-libs/gst/media-info/media-info-test.c
+15
-20
gst-libs/gst/media-info/media-info.c
gst-libs/gst/media-info/media-info.c
+104
-117
gst-libs/gst/media-info/media-info.h
gst-libs/gst/media-info/media-info.h
+25
-36
gst-libs/gst/mixer/mixer.c
gst-libs/gst/mixer/mixer.c
+43
-64
gst-libs/gst/mixer/mixer.h
gst-libs/gst/mixer/mixer.h
+30
-51
gst-libs/gst/mixer/mixertrack.c
gst-libs/gst/mixer/mixertrack.c
+27
-27
gst-libs/gst/mixer/mixertrack.h
gst-libs/gst/mixer/mixertrack.h
+19
-25
gst-libs/gst/navigation/navigation.c
gst-libs/gst/navigation/navigation.c
+15
-21
gst-libs/gst/navigation/navigation.h
gst-libs/gst/navigation/navigation.h
+11
-12
gst-libs/gst/play/play.c
gst-libs/gst/play/play.c
+437
-439
gst-libs/gst/play/play.h
gst-libs/gst/play/play.h
+22
-30
gst-libs/gst/propertyprobe/propertyprobe.c
gst-libs/gst/propertyprobe/propertyprobe.c
+32
-33
gst-libs/gst/propertyprobe/propertyprobe.h
gst-libs/gst/propertyprobe/propertyprobe.h
+31
-37
gst-libs/gst/resample/dtof.c
gst-libs/gst/resample/dtof.c
+31
-25
gst-libs/gst/resample/dtos.c
gst-libs/gst/resample/dtos.c
+134
-123
gst-libs/gst/resample/functable.c
gst-libs/gst/resample/functable.c
+222
-214
gst-libs/gst/resample/private.h
gst-libs/gst/resample/private.h
+50
-47
gst-libs/gst/resample/resample.c
gst-libs/gst/resample/resample.c
+687
-684
gst-libs/gst/resample/resample.h
gst-libs/gst/resample/resample.h
+45
-43
gst-libs/gst/resample/test.c
gst-libs/gst/resample/test.c
+273
-250
gst-libs/gst/riff/riff-ids.h
gst-libs/gst/riff/riff-ids.h
+43
-37
gst-libs/gst/riff/riff-media.c
gst-libs/gst/riff/riff-media.c
+155
-187
gst-libs/gst/riff/riff-media.h
gst-libs/gst/riff/riff-media.h
+7
-16
gst-libs/gst/riff/riff-read.c
gst-libs/gst/riff/riff-read.c
+159
-177
gst-libs/gst/riff/riff-read.h
gst-libs/gst/riff/riff-read.h
+25
-34
gst-libs/gst/riff/riff.c
gst-libs/gst/riff/riff.c
+6
-12
gst-libs/gst/tag/tag.h
gst-libs/gst/tag/tag.h
+15
-24
gst-libs/gst/tuner/tuner.c
gst-libs/gst/tuner/tuner.c
+56
-77
gst-libs/gst/tuner/tuner.h
gst-libs/gst/tuner/tuner.h
+42
-65
gst-libs/gst/tuner/tunerchannel.c
gst-libs/gst/tuner/tunerchannel.c
+19
-21
gst-libs/gst/tuner/tunerchannel.h
gst-libs/gst/tuner/tunerchannel.h
+17
-21
gst-libs/gst/tuner/tunernorm.c
gst-libs/gst/tuner/tunernorm.c
+10
-9
gst-libs/gst/tuner/tunernorm.h
gst-libs/gst/tuner/tunernorm.h
+7
-8
gst-libs/gst/video/gstvideofilter.c
gst-libs/gst/video/gstvideofilter.c
+186
-160
gst-libs/gst/video/gstvideofilter.h
gst-libs/gst/video/gstvideofilter.h
+22
-21
gst-libs/gst/video/gstvideosink.c
gst-libs/gst/video/gstvideosink.c
+23
-25
gst-libs/gst/video/gstvideosink.h
gst-libs/gst/video/gstvideosink.h
+33
-30
gst-libs/gst/video/video.c
gst-libs/gst/video/video.c
+16
-31
gst-libs/gst/video/video.h
gst-libs/gst/video/video.h
+11
-13
gst-libs/gst/video/videosink.h
gst-libs/gst/video/videosink.h
+33
-30
gst-libs/gst/xoverlay/xoverlay.c
gst-libs/gst/xoverlay/xoverlay.c
+38
-38
gst-libs/gst/xoverlay/xoverlay.h
gst-libs/gst/xoverlay/xoverlay.h
+17
-22
gst-libs/gst/xwindowlistener/xwindowlistener.c
gst-libs/gst/xwindowlistener/xwindowlistener.c
+130
-161
gst-libs/gst/xwindowlistener/xwindowlistener.h
gst-libs/gst/xwindowlistener/xwindowlistener.h
+28
-44
gst/adder/gstadder.c
gst/adder/gstadder.c
+146
-152
gst/adder/gstadder.h
gst/adder/gstadder.h
+57
-52
gst/audioconvert/gstaudioconvert.c
gst/audioconvert/gstaudioconvert.c
+215
-177
gst/audioscale/gstaudioscale.c
gst/audioscale/gstaudioscale.c
+102
-102
gst/audioscale/gstaudioscale.h
gst/audioscale/gstaudioscale.h
+8
-10
gst/sine/demo-dparams.c
gst/sine/demo-dparams.c
+99
-93
gst/sine/gstsinesrc.c
gst/sine/gstsinesrc.c
+177
-202
gst/sine/gstsinesrc.h
gst/sine/gstsinesrc.h
+10
-13
gst/tags/gstid3tag.c
gst/tags/gstid3tag.c
+37
-25
gst/tags/gsttagediting.c
gst/tags/gsttagediting.c
+9
-16
gst/tags/gsttageditingprivate.h
gst/tags/gsttageditingprivate.h
+5
-8
gst/tags/gstvorbistag.c
gst/tags/gstvorbistag.c
+195
-156
gst/tcp/gsttcp.c
gst/tcp/gsttcp.c
+8
-13
gst/tcp/gsttcp.h
gst/tcp/gsttcp.h
+2
-2
gst/tcp/gsttcpplugin.c
gst/tcp/gsttcpplugin.c
+8
-13
gst/tcp/gsttcpplugin.h
gst/tcp/gsttcpplugin.h
+2
-2
gst/tcp/gsttcpsink.c
gst/tcp/gsttcpsink.c
+144
-138
gst/tcp/gsttcpsink.h
gst/tcp/gsttcpsink.h
+32
-28
gst/tcp/gsttcpsrc.c
gst/tcp/gsttcpsrc.c
+177
-171
gst/tcp/gsttcpsrc.h
gst/tcp/gsttcpsrc.h
+32
-28
gst/typefind/gsttypefindfunctions.c
gst/typefind/gsttypefindfunctions.c
+360
-323
gst/videoscale/gstvideoscale.c
gst/videoscale/gstvideoscale.c
+129
-126
gst/videoscale/gstvideoscale.h
gst/videoscale/gstvideoscale.h
+48
-44
gst/videoscale/videoscale.c
gst/videoscale/videoscale.c
+304
-274
gst/videoscale/videoscale.h
gst/videoscale/videoscale.h
+14
-12
gst/videoscale/videoscale_x86.c
gst/videoscale/videoscale_x86.c
+13
-12
gst/videoscale/videoscale_x86.h
gst/videoscale/videoscale_x86.h
+4
-4
gst/videotestsrc/gstvideotestsrc.c
gst/videotestsrc/gstvideotestsrc.c
+104
-103
gst/videotestsrc/gstvideotestsrc.h
gst/videotestsrc/gstvideotestsrc.h
+12
-10
gst/videotestsrc/videotestsrc.c
gst/videotestsrc/videotestsrc.c
+155
-137
gst/videotestsrc/videotestsrc.h
gst/videotestsrc/videotestsrc.h
+15
-12
gst/volume/gstvolume.c
gst/volume/gstvolume.c
+267
-287
gst/volume/gstvolume.h
gst/volume/gstvolume.h
+29
-25
sys/v4l/gstv4l.c
sys/v4l/gstv4l.c
+10
-16
sys/v4l/gstv4lcolorbalance.c
sys/v4l/gstv4lcolorbalance.c
+28
-32
sys/v4l/gstv4lcolorbalance.h
sys/v4l/gstv4lcolorbalance.h
+6
-6
sys/v4l/gstv4lelement.c
sys/v4l/gstv4lelement.c
+138
-163
sys/v4l/gstv4lelement.h
sys/v4l/gstv4lelement.h
+11
-16
sys/v4l/gstv4lmjpegsink.c
sys/v4l/gstv4lmjpegsink.c
+126
-140
sys/v4l/gstv4lmjpegsink.h
sys/v4l/gstv4lmjpegsink.h
+8
-10
sys/v4l/gstv4lmjpegsrc.c
sys/v4l/gstv4lmjpegsrc.c
+278
-304
sys/v4l/gstv4lmjpegsrc.h
sys/v4l/gstv4lmjpegsrc.h
+9
-11
sys/v4l/gstv4lsrc.c
sys/v4l/gstv4lsrc.c
+256
-290
sys/v4l/gstv4lsrc.h
sys/v4l/gstv4lsrc.h
+10
-10
sys/v4l/gstv4ltuner.c
sys/v4l/gstv4ltuner.c
+46
-59
sys/v4l/gstv4ltuner.h
sys/v4l/gstv4ltuner.h
+15
-13
sys/v4l/gstv4lxoverlay.c
sys/v4l/gstv4lxoverlay.c
+16
-22
sys/v4l/gstv4lxoverlay.h
sys/v4l/gstv4lxoverlay.h
+5
-8
sys/v4l/v4l-overlay_calls.c
sys/v4l/v4l-overlay_calls.c
+34
-46
sys/v4l/v4l_calls.c
sys/v4l/v4l_calls.c
+153
-194
sys/v4l/v4l_calls.h
sys/v4l/v4l_calls.h
+43
-55
sys/v4l/v4lmjpegsink_calls.c
sys/v4l/v4lmjpegsink_calls.c
+167
-195
sys/v4l/v4lmjpegsink_calls.h
sys/v4l/v4lmjpegsink_calls.h
+20
-24
sys/v4l/v4lmjpegsrc_calls.c
sys/v4l/v4lmjpegsrc_calls.c
+171
-193
sys/v4l/v4lmjpegsrc_calls.h
sys/v4l/v4lmjpegsrc_calls.h
+23
-29
sys/v4l/v4lsrc_calls.c
sys/v4l/v4lsrc_calls.c
+139
-153
sys/v4l/v4lsrc_calls.h
sys/v4l/v4lsrc_calls.h
+15
-13
sys/v4l/videodev_mjpeg.h
sys/v4l/videodev_mjpeg.h
+84
-84
sys/ximage/ximagesink.c
sys/ximage/ximagesink.c
+730
-825
sys/ximage/ximagesink.h
sys/ximage/ximagesink.h
+29
-27
sys/xvimage/xvimagesink.c
sys/xvimage/xvimagesink.c
+1008
-1143
sys/xvimage/xvimagesink.h
sys/xvimage/xvimagesink.h
+35
-32
tests/examples/seek/seek.c
tests/examples/seek/seek.c
+154
-137
tests/examples/seek/spider_seek.c
tests/examples/seek/spider_seek.c
+63
-64
tests/examples/seek/vorbisfile.c
tests/examples/seek/vorbisfile.c
+38
-43
tests/old/examples/capsfilter/capsfilter1.c
tests/old/examples/capsfilter/capsfilter1.c
+9
-10
tests/old/examples/dynparams/filter.c
tests/old/examples/dynparams/filter.c
+141
-153
tests/old/examples/gstplay/player.c
tests/old/examples/gstplay/player.c
+22
-24
tests/old/examples/indexing/indexmpeg.c
tests/old/examples/indexing/indexmpeg.c
+68
-73
tests/old/examples/seek/cdparanoia.c
tests/old/examples/seek/cdparanoia.c
+25
-35
tests/old/examples/seek/cdplayer.c
tests/old/examples/seek/cdplayer.c
+53
-51
tests/old/examples/seek/spider_seek.c
tests/old/examples/seek/spider_seek.c
+63
-64
tests/old/examples/seek/vorbisfile.c
tests/old/examples/seek/vorbisfile.c
+38
-43
tests/old/examples/stats/mp2ogg.c
tests/old/examples/stats/mp2ogg.c
+19
-22
tests/old/examples/switch/switcher.c
tests/old/examples/switch/switcher.c
+23
-26
tests/old/testsuite/alsa/sinesrc.c
tests/old/testsuite/alsa/sinesrc.c
+177
-162
tests/old/testsuite/alsa/sinesrc.h
tests/old/testsuite/alsa/sinesrc.h
+41
-37
tests/old/testsuite/alsa/state.c
tests/old/testsuite/alsa/state.c
+19
-16
tests/old/testsuite/embed/embed.c
tests/old/testsuite/embed/embed.c
+52
-50
testsuite/alsa/sinesrc.c
testsuite/alsa/sinesrc.c
+177
-162
testsuite/alsa/sinesrc.h
testsuite/alsa/sinesrc.h
+41
-37
testsuite/alsa/state.c
testsuite/alsa/state.c
+19
-16
testsuite/embed/embed.c
testsuite/embed/embed.c
+52
-50
No files found.
ChangeLog
View file @
4df3f188
2004-03-14 Thomas Vander Stichele <thomas at apestaart dot org>
* *.c, *.h: run gst-indent
2004-03-14 Benjamin Otte <otte@gnome.org>
* gst/modplug/gstmodplug.cc:
...
...
examples/capsfilter/capsfilter1.c
View file @
4df3f188
...
...
@@ -6,7 +6,7 @@
* connection would use the I420 format (assuming Xv is enabled) */
static
void
new_pad_func
(
GstElement
*
element
,
GstPad
*
newpad
,
gpointer
data
)
new_pad_func
(
GstElement
*
element
,
GstPad
*
newpad
,
gpointer
data
)
{
GstElement
*
pipeline
=
(
GstElement
*
)
data
;
GstElement
*
queue
=
gst_bin_get_by_name
(
GST_BIN
(
pipeline
),
"queue"
);
...
...
@@ -19,7 +19,7 @@ new_pad_func (GstElement *element, GstPad *newpad, gpointer data)
}
gint
main
(
gint
argc
,
gchar
*
argv
[])
main
(
gint
argc
,
gchar
*
argv
[])
{
GstElement
*
pipeline
;
GstElement
*
filesrc
;
...
...
@@ -44,7 +44,8 @@ main (gint argc, gchar *argv[])
g_object_set
(
G_OBJECT
(
filesrc
),
"location"
,
argv
[
1
],
NULL
);
demux
=
gst_element_factory_make
(
"mpegdemux"
,
"demux"
);
g_return_val_if_fail
(
demux
,
-
1
);
g_signal_connect
(
G_OBJECT
(
demux
),
"new_pad"
,
G_CALLBACK
(
new_pad_func
),
pipeline
);
g_signal_connect
(
G_OBJECT
(
demux
),
"new_pad"
,
G_CALLBACK
(
new_pad_func
),
pipeline
);
thread
=
gst_thread_new
(
"thread"
);
queue
=
gst_element_factory_make
(
"queue"
,
"queue"
);
...
...
@@ -58,7 +59,7 @@ main (gint argc, gchar *argv[])
gst_bin_add
(
GST_BIN
(
pipeline
),
filesrc
);
gst_bin_add
(
GST_BIN
(
pipeline
),
demux
);
gst_bin_add
(
GST_BIN
(
thread
),
queue
);
gst_bin_add
(
GST_BIN
(
thread
),
mpeg2dec
);
gst_bin_add
(
GST_BIN
(
thread
),
colorspace
);
...
...
@@ -70,11 +71,9 @@ main (gint argc, gchar *argv[])
gst_element_link
(
mpeg2dec
,
"src"
,
colorspace
,
"sink"
);
/* 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 "
))
));
GST_CAPS_NEW
(
"filtercaps"
,
"video/raw"
,
"format"
,
GST_PROPS_FOURCC
(
GST_STR_FOURCC
(
"RGB "
))
));
if
(
!
res
)
{
g_print
(
"could not connect colorspace and xvideosink
\n
"
);
return
-
1
;
...
...
@@ -83,7 +82,7 @@ main (gint argc, gchar *argv[])
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
);
while
(
gst_bin_iterate
(
GST_BIN
(
pipeline
)));
gst_element_set_state
(
pipeline
,
GST_STATE_NULL
);
return
0
;
...
...
examples/dynparams/filter.c
View file @
4df3f188
This diff is collapsed.
Click to expand it.
examples/gstplay/player.c
View file @
4df3f188
...
...
@@ -16,14 +16,14 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <gst/play/play.h>
static
GMainLoop
*
loop
=
NULL
;
static
gint64
length
=
0
;
static
void
print_tag
(
const
GstTagList
*
list
,
const
gchar
*
tag
,
gpointer
unused
)
print_tag
(
const
GstTagList
*
list
,
const
gchar
*
tag
,
gpointer
unused
)
{
gint
i
,
count
;
...
...
@@ -31,14 +31,14 @@ print_tag (const GstTagList *list, const gchar *tag, gpointer unused)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
gchar
*
str
;
if
(
gst_tag_get_type
(
tag
)
==
G_TYPE_STRING
)
{
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
));
str
=
g_strdup_value_contents
(
gst_tag_list_get_value_index
(
list
,
tag
,
i
));
}
if
(
i
==
0
)
{
g_print
(
"%15s: %s
\n
"
,
gst_tag_get_nick
(
tag
),
str
);
}
else
{
...
...
@@ -50,46 +50,46 @@ print_tag (const GstTagList *list, const gchar *tag, gpointer unused)
}
static
void
got_found_tag
(
GstPlay
*
play
,
GstElement
*
source
,
GstTagList
*
tag_list
)
got_found_tag
(
GstPlay
*
play
,
GstElement
*
source
,
GstTagList
*
tag_list
)
{
gst_tag_list_foreach
(
tag_list
,
print_tag
,
NULL
);
}
static
void
got_time_tick
(
GstPlay
*
play
,
gint64
time_nanos
)
got_time_tick
(
GstPlay
*
play
,
gint64
time_nanos
)
{
g_print
(
"time tick %f
\n
"
,
time_nanos
/
(
float
)
GST_SECOND
);
}
static
void
got_stream_length
(
GstPlay
*
play
,
gint64
length_nanos
)
got_stream_length
(
GstPlay
*
play
,
gint64
length_nanos
)
{
g_print
(
"got length %llu
\n
"
,
length_nanos
);
length
=
length_nanos
;
}
static
void
got_video_size
(
GstPlay
*
play
,
gint
width
,
gint
height
)
got_video_size
(
GstPlay
*
play
,
gint
width
,
gint
height
)
{
g_print
(
"got video size %d, %d
\n
"
,
width
,
height
);
}
static
void
got_eos
(
GstPlay
*
play
)
got_eos
(
GstPlay
*
play
)
{
g_print
(
"End Of Stream
\n
"
);
g_main_loop_quit
(
loop
);
}
static
gboolean
seek_timer
(
GstPlay
*
play
)
seek_timer
(
GstPlay
*
play
)
{
gst_play_seek_to_time
(
play
,
length
/
2
);
return
FALSE
;
}
static
gboolean
idle_iterate
(
GstPlay
*
play
)
idle_iterate
(
GstPlay
*
play
)
{
gst_bin_iterate
(
GST_BIN
(
play
));
return
(
GST_STATE
(
GST_ELEMENT
(
play
))
==
GST_STATE_PLAYING
);
...
...
@@ -114,8 +114,7 @@ main (int argc, char *argv[])
/* Creating the GstPlay object */
play
=
gst_play_new
(
&
error
);
if
(
error
)
{
if
(
error
)
{
g_print
(
"Error: could not create play object:
\n
%s
\n
"
,
error
->
message
);
g_error_free
(
error
);
return
1
;
...
...
@@ -140,17 +139,16 @@ main (int argc, char *argv[])
/* gst_xml_write_file (GST_ELEMENT (play), stdout); */
g_signal_connect
(
G_OBJECT
(
play
),
"time_tick"
,
G_CALLBACK
(
got_time_tick
),
NULL
);
G_CALLBACK
(
got_time_tick
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"stream_length"
,
G_CALLBACK
(
got_stream_length
),
NULL
);
G_CALLBACK
(
got_stream_length
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"have_video_size"
,
G_CALLBACK
(
got_video_size
),
NULL
);
G_CALLBACK
(
got_video_size
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"found_tag"
,
G_CALLBACK
(
got_found_tag
),
NULL
);
G_CALLBACK
(
got_found_tag
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"error"
,
G_CALLBACK
(
gst_element_default_error
),
NULL
);
g_signal_connect
(
G_OBJECT
(
play
),
"eos"
,
G_CALLBACK
(
got_eos
),
NULL
);
G_CALLBACK
(
gst_element_default_error
),
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
);
...
...
@@ -163,9 +161,9 @@ main (int argc, char *argv[])
g_print
(
"setting pipeline to ready
\n
"
);
gst_element_set_state
(
GST_ELEMENT
(
play
),
GST_STATE_READY
);
/* unref
gst_object_unref (GST_OBJECT (play)); */
gst_object_unref (GST_OBJECT (play)); */
exit
(
0
);
}
examples/indexing/indexmpeg.c
View file @
4df3f188
...
...
@@ -24,26 +24,26 @@ static gboolean verbose = FALSE;
static
gboolean
quiet
=
FALSE
;
static
void
entry_added
(
GstIndex
*
index
,
GstIndexEntry
*
entry
)
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
));
g_print
(
"id %d describes writer %s
\n
"
,
entry
->
id
,
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
));
g_print
(
"%d: registered format %d for %s
\n
"
,
entry
->
id
,
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
));
g_print
(
"%p, %d: %08x "
,
entry
,
entry
->
id
,
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
;
...
...
@@ -55,15 +55,15 @@ entry_added (GstIndex *index, GstIndexEntry *entry)
typedef
struct
{
const
gchar
*
padname
;
GstPad
*
target
;
GstElement
*
bin
;
GstElement
*
pipeline
;
GstIndex
*
index
;
const
gchar
*
padname
;
GstPad
*
target
;
GstElement
*
bin
;
GstElement
*
pipeline
;
GstIndex
*
index
;
}
dyn_link
;
static
void
dynamic_link
(
GstPadTemplate
*
templ
,
GstPad
*
newpad
,
gpointer
data
)
dynamic_link
(
GstPadTemplate
*
templ
,
GstPad
*
newpad
,
gpointer
data
)
{
dyn_link
*
link
=
(
dyn_link
*
)
data
;
...
...
@@ -77,27 +77,25 @@ dynamic_link (GstPadTemplate *templ, GstPad *newpad, gpointer data)
}
static
void
setup_dynamic_linking
(
GstElement
*
pipeline
,
GstElement
*
element
,
const
gchar
*
padname
,
GstPad
*
target
,
GstElement
*
bin
,
GstIndex
*
index
)
setup_dynamic_linking
(
GstElement
*
pipeline
,
GstElement
*
element
,
const
gchar
*
padname
,
GstPad
*
target
,
GstElement
*
bin
,
GstIndex
*
index
)
{
dyn_link
*
link
;
link
=
g_new0
(
dyn_link
,
1
);
link
->
padname
=
g_strdup
(
padname
);
link
->
target
=
target
;
link
->
bin
=
bin
;
link
->
pipeline
=
pipeline
;
link
->
index
=
index
;
g_signal_connect
(
G_OBJECT
(
element
),
"new_pad"
,
G_CALLBACK
(
dynamic_link
),
link
);
link
->
padname
=
g_strdup
(
padname
);
link
->
target
=
target
;
link
->
bin
=
bin
;
link
->
pipeline
=
pipeline
;
link
->
index
=
index
;
g_signal_connect
(
G_OBJECT
(
element
),
"new_pad"
,
G_CALLBACK
(
dynamic_link
),
link
);
}
static
GstElement
*
make_mpeg_systems_pipeline
(
const
gchar
*
path
,
GstIndex
*
index
)
static
GstElement
*
make_mpeg_systems_pipeline
(
const
gchar
*
path
,
GstIndex
*
index
)
{
GstElement
*
pipeline
;
GstElement
*
src
,
*
demux
;
...
...
@@ -117,12 +115,12 @@ make_mpeg_systems_pipeline (const gchar *path, GstIndex *index)
}
gst_element_link_pads
(
src
,
"src"
,
demux
,
"sink"
);
return
pipeline
;
}
static
GstElement
*
make_mpeg_decoder_pipeline
(
const
gchar
*
path
,
GstIndex
*
index
)
static
GstElement
*
make_mpeg_decoder_pipeline
(
const
gchar
*
path
,
GstIndex
*
index
)
{
GstElement
*
pipeline
;
GstElement
*
src
,
*
demux
;
...
...
@@ -145,29 +143,27 @@ make_mpeg_decoder_pipeline (const gchar *path, GstIndex *index)
video_decoder
=
gst_element_factory_make
(
"mpeg2dec"
,
"video_decoder"
);
gst_bin_add
(
GST_BIN
(
video_bin
),
video_decoder
);
setup_dynamic_linking
(
pipeline
,
demux
,
"video_00"
,
gst_element_get_pad
(
video_decoder
,
"sink"
),
video_bin
,
index
);
setup_dynamic_linking
(
pipeline
,
demux
,
"video_00"
,
gst_element_get_pad
(
video_decoder
,
"sink"
),
video_bin
,
index
);
audio_bin
=
gst_bin_new
(
"audio_bin"
);
audio_decoder
=
gst_element_factory_make
(
"mad"
,
"audio_decoder"
);
setup_dynamic_linking
(
pipeline
,
demux
,
"audio_00"
,
gst_element_get_pad
(
audio_decoder
,
"sink"
),
audio_bin
,
index
);
setup_dynamic_linking
(
pipeline
,
demux
,
"audio_00"
,
gst_element_get_pad
(
audio_decoder
,
"sink"
),
audio_bin
,
index
);
gst_bin_add
(
GST_BIN
(
audio_bin
),
audio_decoder
);
if
(
index
)
{
gst_element_set_index
(
pipeline
,
index
);
}
return
pipeline
;
}
static
void
print_progress
(
GstPad
*
pad
)
print_progress
(
GstPad
*
pad
)
{
gint
i
=
0
;
gchar
status
[
53
];
...
...
@@ -181,14 +177,14 @@ print_progress (GstPad *pad)
format
=
GST_FORMAT_PERCENT
;
res
=
gst_pad_query
(
pad
,
GST_QUERY_POSITION
,
&
format
,
&
value
);
if
(
res
)
{
percent
=
value
/
(
2
*
GST_FORMAT_PERCENT_SCALE
);
percent
=
value
/
(
2
*
GST_FORMAT_PERCENT_SCALE
);
}
for
(
i
=
0
;
i
<
percent
;
i
++
)
{
status
[
i
+
1
]
=
'='
;
status
[
i
+
1
]
=
'='
;
}
for
(
i
=
percent
;
i
<
50
;
i
++
)
{
status
[
i
+
1
]
=
' '
;
status
[
i
+
1
]
=
' '
;
}
status
[
51
]
=
'|'
;
status
[
52
]
=
0
;
...
...
@@ -196,8 +192,8 @@ print_progress (GstPad *pad)
g_print
(
"%s
\r
"
,
status
);
}
gint
main
(
gint
argc
,
gchar
*
argv
[])
gint
main
(
gint
argc
,
gchar
*
argv
[])
{
GstElement
*
pipeline
;
GstElement
*
src
;
...
...
@@ -208,27 +204,28 @@ main (gint argc, gchar *argv[])
gboolean
res
;
GstElement
*
sink
;
struct
poptOption
options
[]
=
{
{
"verbose"
,
'v'
,
POPT_ARG_NONE
|
POPT_ARGFLAG_STRIP
,
&
verbose
,
0
,
"Print index entries"
,
NULL
},
{
"quiet"
,
'q'
,
POPT_ARG_NONE
|
POPT_ARGFLAG_STRIP
,
&
quiet
,
0
,
"don't print progress bar"
,
NULL
},
POPT_TABLEEND
};
{
"verbose"
,
'v'
,
POPT_ARG_NONE
|
POPT_ARGFLAG_STRIP
,
&
verbose
,
0
,
"Print index entries"
,
NULL
},
{
"quiet"
,
'q'
,
POPT_ARG_NONE
|
POPT_ARGFLAG_STRIP
,
&
quiet
,
0
,
"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
]);
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
]);
return
-
1
;
}
/* create index that elements can fill */
index
=
gst_index_factory_make
(
"memindex"
);
if
(
index
)
{
if
(
verbose
)
g_signal_connect
(
G_OBJECT
(
index
),
"entry_added"
,
G_CALLBACK
(
entry_added
),
NULL
);
if
(
verbose
)
g_signal_connect
(
G_OBJECT
(
index
),
"entry_added"
,
G_CALLBACK
(
entry_added
),
NULL
);
g_object_set
(
G_OBJECT
(
index
),
"resolver"
,
1
,
NULL
);
}
...
...
@@ -247,10 +244,10 @@ main (gint argc, gchar *argv[])
}
/* setup some default info/error handlers */
g_signal_connect
(
G_OBJECT
(
pipeline
),
"deep_notify"
,
G_CALLBACK
(
gst_element_default_deep_notify
),
NULL
);
g_signal_connect
(
G_OBJECT
(
pipeline
),
"error"
,
G_CALLBACK
(
gst_element_default_error
),
NULL
);
g_signal_connect
(
G_OBJECT
(
pipeline
),
"deep_notify"
,
G_CALLBACK
(
gst_element_default_deep_notify
),
NULL
);
g_signal_connect
(
G_OBJECT
(
pipeline
),
"error"
,
G_CALLBACK
(
gst_element_default_error
),
NULL
);
/* get a pad to perform progress reporting on */
src
=
gst_bin_get_by_name
(
GST_BIN
(
pipeline
),
"src"
);
...
...
@@ -259,7 +256,7 @@ main (gint argc, gchar *argv[])
/* prepare for iteration */
gst_element_set_state
(
pipeline
,
GST_STATE_PLAYING
);
g_print
(
"indexing %s...
\n
"
,
argv
[
2
]);
g_print
(
"indexing %s...
\n
"
,
argv
[
2
]);
/* run through the complete stream to let it generate an index */
while
(
gst_bin_iterate
(
GST_BIN
(
pipeline
)))
{
if
(
!
quiet
&&
(
count
%
1000
==
0
))
{
...
...
@@ -285,24 +282,23 @@ main (gint argc, gchar *argv[])
gint
total_tm
;
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
;
g_print
(
"total time = %.2fs
\n
"
,
total_tm
/
60
.
0
);
}
pad
=
gst_element_get_pad
(
src
,
"src"
);
sink
=
gst_element_factory_make
(
"fakesink"
,
"sink"
);
gst_element_link_pads
(
src
,
"src"
,
sink
,
"sink"
);
gst_bin_add
(
GST_BIN
(
pipeline
),
sink
);
g_print
(
"seeking %s...
\n
"
,
argv
[
2
]);
g_print
(
"seeking %s...
\n
"
,
argv
[
2
]);
event
=
gst_event_new_seek
(
GST_FORMAT_TIME
|
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
5
*
GST_SECOND
);
GST_SEEK_METHOD_SET
|
GST_SEEK_FLAG_FLUSH
,
5
*
GST_SECOND
);
res
=
gst_pad_send_event
(
pad
,
event
);
if
(
!
res
)
{
...
...
@@ -322,4 +318,3 @@ main (gint argc, gchar *argv[])
return
1
;
}
examples/seeking/cdparanoia.c
View file @
4df3f188
...
...
@@ -3,7 +3,7 @@
#include <string.h>
static
void
get_position_info
(
GstElement
*
cdparanoia
)
get_position_info
(
GstElement
*
cdparanoia
)
{
GstFormat
track_format
;
const
GstFormat
*
formats
;
...
...
@@ -24,14 +24,13 @@ get_position_info (GstElement *cdparanoia)
definition
=
gst_format_get_details
(
*
formats
);
format
=
*
formats
;
res
=
gst_pad_query
(
pad
,
GST_QUERY_POSITION
,
&
format
,
&
position
);
res
=
gst_pad_query
(
pad
,
GST_QUERY_POSITION
,
&
format
,
&
position
);
if
(
format
==
GST_FORMAT_TIME
)
{
position
/=
GST_SECOND
;
g_print
(
"%s: %lld:%02lld"
,
definition
->
nick
,
position
/
60
,
position
%
60
);
}
else
{
g_print
(
"%s: %lld:%02lld"
,
definition
->
nick
,
position
/
60
,
position
%
60
);
}
else
{
g_print
(
"%s: %lld"
,
definition
->
nick
,
position
);
}
...
...
@@ -44,7 +43,7 @@ get_position_info (GstElement *cdparanoia)
}
static
void
get_track_info
(
GstElement
*
cdparanoia
)
get_track_info
(
GstElement
*
cdparanoia
)
{
GstFormat
track_format
;
gint64
total_tracks
=
0
,
total_time
=
0
;
...
...
@@ -52,7 +51,7 @@ get_track_info (GstElement *cdparanoia)
const
GstFormat
*
formats
;
gint
i
;
gint64
time_count
=
0
;
track_format
=
gst_format_get_by_nick
(
"track"
);
g_assert
(
track_format
!=
0
);
...
...
@@ -66,26 +65,24 @@ get_track_info (GstElement *cdparanoia)
gint64
total
;
GstFormat
format
;
gboolean
res
;
definition
=
gst_format_get_details
(
*
formats
);
format
=
*
formats
;
res
=
gst_pad_query
(
pad
,
GST_QUERY_TOTAL
,
&
format
,
&
total
);
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
);
}
else
g_print
(
"%s total: %lld
\n
"
,
definition
->
nick
,
total
);
g_print
(
"%s total: %lld:%02lld
\n
"
,
definition
->
nick
,
total
/
60
,
total
%
60
);
}
else
g_print
(
"%s total: %lld
\n
"
,
definition
->
nick
,
total
);
if
(
format
==
track_format
)
total_tracks
=
total
;
else
if
(
format
==
GST_FORMAT_TIME
)
total_time
=
total
;