[longomatch] Add a new IRemuxer interface
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add a new IRemuxer interface
- Date: Fri, 5 Oct 2012 01:21:17 +0000 (UTC)
commit d7da38673e51f47afd1b3dcfb91acfb7390ce182
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Oct 5 02:17:05 2012 +0200
Add a new IRemuxer interface
LongoMatch.Multimedia/LongoMatch.Multimedia.mdp | 1 +
LongoMatch.Multimedia/Makefile.am | 1 +
LongoMatch.Multimedia/MultimediaFactory.cs | 5 +++++
LongoMatch.Multimedia/Remuxer/GstRemuxer.cs | 2 +-
4 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Multimedia/LongoMatch.Multimedia.mdp b/LongoMatch.Multimedia/LongoMatch.Multimedia.mdp
index 3498a7d..eb2fbd8 100644
--- a/LongoMatch.Multimedia/LongoMatch.Multimedia.mdp
+++ b/LongoMatch.Multimedia/LongoMatch.Multimedia.mdp
@@ -58,6 +58,7 @@
<File subtype="Directory" buildaction="Compile" name="Remuxer" />
<File subtype="Code" buildaction="Compile" name="Remuxer/GstRemuxer.cs" />
<File subtype="Code" buildaction="Compile" name="Remuxer/ObjectManager.cs" />
+ <File subtype="Code" buildaction="Compile" name="Interfaces/IRemuxer.cs" />
</Contents>
<References>
<ProjectReference type="Project" localcopy="True" refto="libcesarplayer" />
diff --git a/LongoMatch.Multimedia/Makefile.am b/LongoMatch.Multimedia/Makefile.am
index a3d3ee2..2ef255e 100644
--- a/LongoMatch.Multimedia/Makefile.am
+++ b/LongoMatch.Multimedia/Makefile.am
@@ -15,6 +15,7 @@ SOURCES = \
Editor/GstVideoSplitter.cs \
Interfaces/ICapturer.cs \
Interfaces/IPlayer.cs \
+ Interfaces/IRemuxer.cs \
Player/GstPlayer.cs \
Player/ObjectManager.cs \
Remuxer/GstRemuxer.cs \
diff --git a/LongoMatch.Multimedia/MultimediaFactory.cs b/LongoMatch.Multimedia/MultimediaFactory.cs
index 08ec3c0..6cd201b 100644
--- a/LongoMatch.Multimedia/MultimediaFactory.cs
+++ b/LongoMatch.Multimedia/MultimediaFactory.cs
@@ -30,6 +30,7 @@ using LongoMatch.Store;
using LongoMatch.Video.Capturer;
using LongoMatch.Video.Player;
using LongoMatch.Video.Editor;
+using LongoMatch.Video.Remuxer;
using LongoMatch.Video.Utils;
using LongoMatch.Video.Common;
@@ -113,6 +114,10 @@ namespace LongoMatch.Video
}
}
+ public IRemuxer GetRemuxer(string inputFile, string outputFile) {
+ return new GstRemuxer (inputFile, outputFile);
+ }
+
public MediaFile DiscoverFile (string file) {
return PreviewMediaFile.DiscoverFile(file);
}
diff --git a/LongoMatch.Multimedia/Remuxer/GstRemuxer.cs b/LongoMatch.Multimedia/Remuxer/GstRemuxer.cs
index 1b3aeb3..cc3fa9a 100644
--- a/LongoMatch.Multimedia/Remuxer/GstRemuxer.cs
+++ b/LongoMatch.Multimedia/Remuxer/GstRemuxer.cs
@@ -28,7 +28,7 @@ namespace LongoMatch.Video.Remuxer {
#region Autogenerated code
- public class GstRemuxer : GLib.Object {
+ public class GstRemuxer : GLib.Object, IRemuxer {
public event ProgressHandler Progress;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]