summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorStephan Sundermann <ssundermann@gnome.org>2014-08-01 15:07:22 +0200
committerStephan Sundermann <ssundermann@gnome.org>2014-08-01 15:07:22 +0200
commitc0d824ab7b868b7019b10783c51b837feb7c9ef8 (patch)
tree34cf6b84dede82b248588867c33aa8f3296c23ac /samples
parente90703356ddb760e4abaf5c47a4fcdde18479cc9 (diff)
Add sample makefile
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile.am21
-rw-r--r--samples/Playback.cs2
2 files changed, 22 insertions, 1 deletions
diff --git a/samples/Makefile.am b/samples/Makefile.am
new file mode 100644
index 0000000..38d6445
--- /dev/null
+++ b/samples/Makefile.am
@@ -0,0 +1,21 @@
+TARGETS = playback.exe video-overlay.exe
+
+DEBUGS = $(addsuffix .mdb, $(TARGETS))
+assemblies = \
+ $(top_builddir)/out/gstreamer-sharp.dll
+
+references=$(addprefix -r:, $(assemblies))
+
+noinst_SCRIPTS = $(TARGETS)
+CLEANFILES = $(TARGETS) $(DEBUGS)
+
+playback.exe: $(srcdir)/Playback.cs $(assemblies)
+ $(CSC) $(CSFLAGS) -out:playback.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/Playback.cs
+
+video-overlay.exe: $(srcdir)/VideoOverlay.cs $(assemblies)
+ $(CSC) $(CSFLAGS) -out:video-overlay.exe $(references) $(GTK_SHARP_LIBS) $(srcdir)/VideoOverlay.cs
+
+
+EXTRA_DIST = \
+ Playback.cs \
+ VideoOverlay.cs
diff --git a/samples/Playback.cs b/samples/Playback.cs
index e7676af..fc53b5c 100644
--- a/samples/Playback.cs
+++ b/samples/Playback.cs
@@ -28,7 +28,7 @@ namespace GstreamerSharp
Loop = new GLib.MainLoop();
Application.Init(ref args);
- element = Gst.Parse.ParseLaunch("playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv");
+ element = Gst.Parse.Launch("playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv");
element.Bus.AddSignalWatch();
element.Bus.Message += Handle;