Commit 4202956f authored by Mike Wey's avatar Mike Wey
Browse files

Fix deprecation warnings in the demos.

parent 3396c8a5
......@@ -116,7 +116,7 @@ int main(string[] args)
writefln("Checking version of GStreamer...");
GStreamer.versio(major, minor, micro, nano);
GStreamer.version_(major, minor, micro, nano);
writefln("The installed version of GStreamer is %s.%s.%s", major, minor, micro );
writefln( "The file is: %s", args[1] );
......
......@@ -212,10 +212,10 @@ public:
if( source !is null )
{
fullStop();
delete source;
source.destroy();
}
if( videosink !is null )
delete videosink;
videosink.destroy();
// create elements
......
......@@ -78,7 +78,7 @@ class SpawnWindow : ApplicationWindow
private bool exec(string[] args)
{
foreach ( int 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 ( int count, string arg; args)
foreach ( size_t count, string arg; args)
{
if ( count > 0 ) t ~= " ";
t ~= arg;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment