Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dlang
gtkd
Commits
4202956f
Commit
4202956f
authored
Apr 07, 2019
by
Mike Wey
Browse files
Fix deprecation warnings in the demos.
parent
3396c8a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
demos/gstreamer/helloworld/gstreamer_helloworld.d
View file @
4202956f
...
...
@@ -116,7 +116,7 @@ int main(string[] args)
writefln
(
"Checking version of GStreamer..."
);
GStreamer
.
versio
(
major
,
minor
,
micro
,
nano
);
GStreamer
.
versio
n_
(
major
,
minor
,
micro
,
nano
);
writefln
(
"The installed version of GStreamer is %s.%s.%s"
,
major
,
minor
,
micro
);
writefln
(
"The file is: %s"
,
args
[
1
]
);
...
...
demos/gstreamer/mediaplayer/gst_mediaplayer.d
View file @
4202956f
...
...
@@ -212,10 +212,10 @@ public:
if
(
source
!
is
null
)
{
fullStop
();
delete
source
;
source
.
destroy
()
;
}
if
(
videosink
!
is
null
)
delete
videosink
;
videosink
.
destroy
()
;
// create elements
...
...
demos/gtk/SpawnTests.d
View file @
4202956f
...
...
@@ -78,7 +78,7 @@ class SpawnWindow : ApplicationWindow
private
bool
exec
(
string
[]
args
)
{
foreach
(
in
t
i
,
string
arg
;
args
)
foreach
(
size_
t
i
,
string
arg
;
args
)
{
writefln
(
"[%s] >%s<"
,
i
,
arg
);
}
...
...
@@ -141,7 +141,7 @@ class SpawnWindow : ApplicationWindow
{
TextBuffer
inBuffer
=
viewInput
.
getBuffer
();
string
t
;
foreach
(
in
t
count
,
string
arg
;
args
)
foreach
(
size_
t
count
,
string
arg
;
args
)
{
if
(
count
>
0
)
t
~=
" "
;
t
~=
arg
;
...
...
Write
Preview
Supports
Markdown
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