From f665c749b6d370f9e696132ffbf92e5479528981 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Mon, 25 May 2009 12:09:52 +0200 Subject: [PATCH] Use libgst*.dll in DllImport attribute, instead of gst*.dll Nescessary for .NET, which doesn't prefix the library filename with lib automatically. --- gstreamer-sharp/Application.cs | 6 +- gstreamer-sharp/Bin.custom | 14 +-- gstreamer-sharp/Buffer.custom | 8 +- gstreamer-sharp/Bus.custom | 8 +- gstreamer-sharp/Caps.custom | 22 ++--- gstreamer-sharp/Clock.custom | 4 +- gstreamer-sharp/Debug.custom | 2 +- gstreamer-sharp/Element.custom | 30 +++--- gstreamer-sharp/Event.custom | 44 ++++----- gstreamer-sharp/Iterator.cs | 6 +- gstreamer-sharp/Message.custom | 92 +++++++++---------- gstreamer-sharp/MiniObject.cs | 16 ++-- gstreamer-sharp/MixerMessage.cs | 12 +-- gstreamer-sharp/NavigationEvent.cs | 10 +- gstreamer-sharp/NavigationMessage.cs | 12 +-- gstreamer-sharp/NavigationQuery.cs | 16 ++-- gstreamer-sharp/Object.custom | 10 +- gstreamer-sharp/Pad.custom | 68 +++++++------- gstreamer-sharp/PadTemplate.custom | 4 +- gstreamer-sharp/Plugin.custom | 2 +- gstreamer-sharp/PresetDefault.cs | 2 +- gstreamer-sharp/Query.custom | 66 ++++++------- gstreamer-sharp/Structure.custom | 22 ++--- gstreamer-sharp/Tag.custom | 4 +- gstreamer-sharp/TagList.custom | 12 +-- gstreamer-sharp/TunerNorm.custom | 2 +- gstreamer-sharp/TypeFind.custom | 2 +- gstreamer-sharp/TypeFindFactory.custom | 2 +- gstreamer-sharp/Value.cs | 60 ++++++------ gstreamer-sharp/Version.cs | 4 +- gstreamer-sharp/baseplugins/XvImageSink.cs | 10 +- gstreamer-sharp/gstreamer-api.raw | 4 +- gstreamer-sharp/gstreamer-sharp.dll.config.in | 2 +- .../override/ColorBalanceAdapter.cs | 10 +- gstreamer-sharp/override/MixerAdapter.cs | 30 +++--- gstreamer-sharp/override/NavigationAdapter.cs | 12 +-- .../override/PropertyProbeAdapter.cs | 12 +-- gstreamer-sharp/override/URIHandlerAdapter.cs | 10 +- 38 files changed, 326 insertions(+), 326 deletions(-) diff --git a/gstreamer-sharp/Application.cs b/gstreamer-sharp/Application.cs index 0cfc6a8b36..1bd140843f 100644 --- a/gstreamer-sharp/Application.cs +++ b/gstreamer-sharp/Application.cs @@ -157,13 +157,13 @@ namespace Gst { RegisterManagedTypes (); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_init (ref int argc, ref IntPtr argv); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern bool gst_init_check (ref int argc, ref IntPtr argv, out IntPtr error); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_deinit(); } } diff --git a/gstreamer-sharp/Bin.custom b/gstreamer-sharp/Bin.custom index 8b0911bdc3..6a1ebd54c1 100644 --- a/gstreamer-sharp/Bin.custom +++ b/gstreamer-sharp/Bin.custom @@ -1,4 +1,4 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_bin_add (IntPtr raw, IntPtr element); [DllImport ("libgobject-2.0-0.dll") ] @@ -51,17 +51,17 @@ public Gst.Element GetByInterface (System.Type type) { return GetByInterface (t); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_bin_iterate_elements (IntPtr bin); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_bin_iterate_recurse (IntPtr bin); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_bin_iterate_sinks (IntPtr bin); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_bin_iterate_sorted (IntPtr bin); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_bin_iterate_sources (IntPtr bin); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_bin_iterate_all_by_interface (IntPtr bin, IntPtr gtype); public IEnumerable Elements { diff --git a/gstreamer-sharp/Buffer.custom b/gstreamer-sharp/Buffer.custom index 793dfb9ee0..9bbeb7127a 100644 --- a/gstreamer-sharp/Buffer.custom +++ b/gstreamer-sharp/Buffer.custom @@ -1,4 +1,4 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_buffer_try_new_and_alloc (uint size); public Buffer (GLib.Value val) : base (val) { } @@ -71,7 +71,7 @@ public byte this [uint index] { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport ("libgstreamer-0.10.dll") ] static extern void gst_mini_object_unref (IntPtr raw); /* FIXME: This is not optimal */ @@ -85,9 +85,9 @@ public void MakeMetadataWritable() { gst_mini_object_unref (old); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_buffer_get_caps (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_buffer_set_caps (IntPtr raw, IntPtr caps); public Gst.Caps Caps { diff --git a/gstreamer-sharp/Bus.custom b/gstreamer-sharp/Bus.custom index bef2a69167..316b036304 100644 --- a/gstreamer-sharp/Bus.custom +++ b/gstreamer-sharp/Bus.custom @@ -1,6 +1,6 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_bus_post (IntPtr raw, IntPtr message); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_mini_object_copy (IntPtr raw); public bool Post (Gst.Message message) { @@ -10,7 +10,7 @@ public bool Post (Gst.Message message) { } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern int gst_bus_sync_signal_handler (IntPtr raw, IntPtr message, IntPtr data); public Gst.BusSyncReply SyncSignalHandler (Gst.Message message) { @@ -23,7 +23,7 @@ public uint AddWatch (Gst.BusFunc func) { return AddWatch (0, func); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_bus_async_signal_func (IntPtr raw, IntPtr message, IntPtr data); public bool AsyncSignalFunc (Gst.Message message) { diff --git a/gstreamer-sharp/Caps.custom b/gstreamer-sharp/Caps.custom index a96ea2810c..9798cd5dc5 100644 --- a/gstreamer-sharp/Caps.custom +++ b/gstreamer-sharp/Caps.custom @@ -11,7 +11,7 @@ public Caps (Structure[] s) : this () { Append (o); } -[DllImport ("gstreamersharpglue-0.10") ] +[DllImport ("gstreamersharpglue-0.10.dll") ] extern static uint gstsharp_gst_caps_get_refcount_offset (); static uint refcount_offset = gstsharp_gst_caps_get_refcount_offset (); @@ -57,7 +57,7 @@ private void RemoveStructureReferences () { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_caps_get_structure (IntPtr handle, uint index); public Structure this [uint index] { @@ -116,10 +116,10 @@ public IEnumerator GetEnumerator() { return new StructureEnumerator (this); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_caps_append_structure (IntPtr caps, IntPtr structure); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_structure_copy (IntPtr raw); public void Append (Structure s) { @@ -129,7 +129,7 @@ public void Append (Structure s) { gst_caps_append_structure (Handle, gst_structure_copy (s.Handle)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_caps_append (IntPtr caps, IntPtr caps2); public void Append (Caps caps) { @@ -139,7 +139,7 @@ public void Append (Caps caps) { gst_caps_append (Handle, gst_caps_copy (caps.Handle)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_caps_merge_structure (IntPtr caps, IntPtr structure); public void Merge (Structure s) { @@ -149,7 +149,7 @@ public void Merge (Structure s) { gst_caps_merge_structure (Handle, gst_structure_copy (s.Handle)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_caps_merge (IntPtr caps, IntPtr caps2); public void Merge (Caps caps) { @@ -163,7 +163,7 @@ public void Merge (Caps caps) { gst_caps_merge (Handle, gst_caps_copy (caps.Handle)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_caps_remove_structure (IntPtr caps, uint index); public void RemoveStructure (uint index) { @@ -179,7 +179,7 @@ public void RemoveStructure (uint index) { gst_caps_remove_structure (Handle, index); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_caps_do_simplify (IntPtr caps); public bool DoSimplify () { @@ -193,7 +193,7 @@ public bool DoSimplify () { return gst_caps_do_simplify (Handle); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_caps_truncate (IntPtr caps); public void Truncate () { @@ -206,7 +206,7 @@ public void Truncate () { gst_caps_truncate (Handle); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_caps_unref (IntPtr raw); protected override void Unref (IntPtr raw) { diff --git a/gstreamer-sharp/Clock.custom b/gstreamer-sharp/Clock.custom index 5c9c027c89..f7000475e6 100644 --- a/gstreamer-sharp/Clock.custom +++ b/gstreamer-sharp/Clock.custom @@ -92,9 +92,9 @@ public bool TrySlaveLock () { return g_mutex_trylock (SlaveLockPtr); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_clock_get_master (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_clock_set_master (IntPtr raw, IntPtr master); public Gst.Clock Master { get { diff --git a/gstreamer-sharp/Debug.custom b/gstreamer-sharp/Debug.custom index ef2f4e419f..dc31bb9646 100644 --- a/gstreamer-sharp/Debug.custom +++ b/gstreamer-sharp/Debug.custom @@ -1,5 +1,5 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_debug_set_default_threshold (Gst.DebugLevel debug_level); public static void SetDefaultThreshold (Gst.DebugLevel debug_level) { diff --git a/gstreamer-sharp/Element.custom b/gstreamer-sharp/Element.custom index 1098e425c2..46d809c7d9 100644 --- a/gstreamer-sharp/Element.custom +++ b/gstreamer-sharp/Element.custom @@ -1,6 +1,6 @@ [DllImport ("libgobject-2.0-0.dll") ] static extern IntPtr g_object_ref (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_element_add_pad (IntPtr raw, IntPtr pad); public bool AddPad (Pad p) { @@ -25,11 +25,11 @@ public static void UnlinkMany (params Element [] elements) { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_element_iterate_pads (IntPtr element); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_element_iterate_src_pads (IntPtr element); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_element_iterate_sink_pads (IntPtr element); public IEnumerable Pads { @@ -55,25 +55,25 @@ public Gst.StateChangeReturn GetState (out Gst.State state, ulong timeout) { return GetState (out state, out pending, timeout); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_element_found_tags (IntPtr raw, IntPtr list); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_tag_list_copy (IntPtr raw); public void FoundTags (Gst.TagList list) { gst_element_found_tags (Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_element_found_tags_for_pad (IntPtr raw, IntPtr pad, IntPtr list); public void FoundTagsForPad (Gst.Pad pad, Gst.TagList list) { gst_element_found_tags_for_pad (Handle, pad == null ? IntPtr.Zero : pad.Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_element_post_message (IntPtr raw, IntPtr message); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_mini_object_ref (IntPtr raw); public bool PostMessage (Gst.Message message) { @@ -82,7 +82,7 @@ public bool PostMessage (Gst.Message message) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_element_get_query_types (IntPtr raw); public Gst.QueryType[] GetQueryTypes () { @@ -107,7 +107,7 @@ public Gst.QueryType[] GetQueryTypes () { } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_element_send_event (IntPtr raw, IntPtr evnt); public bool SendEvent (Gst.Event evnt) { @@ -116,7 +116,7 @@ public bool SendEvent (Gst.Event evnt) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_element_class_add_pad_template (IntPtr klass, IntPtr templ); protected static void AddPadTemplate (GLib.GType gtype, Gst.PadTemplate templ) { @@ -124,7 +124,7 @@ protected static void AddPadTemplate (GLib.GType gtype, Gst.PadTemplate templ) { gst_element_class_add_pad_template (class_ptr, templ.Handle); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_element_class_get_pad_template (IntPtr klass, IntPtr name); public Gst.PadTemplate GetPadTemplate (string name) { @@ -137,7 +137,7 @@ public Gst.PadTemplate GetPadTemplate (string name) { return GLib.Object.GetObject (raw_ret, false) as Gst.PadTemplate; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_element_class_get_pad_template_list (IntPtr klass); public Gst.PadTemplate[] PadTemplates { @@ -150,7 +150,7 @@ public Gst.PadTemplate[] PadTemplates { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_element_class_set_details_simple (IntPtr klass, IntPtr longname, IntPtr classification, IntPtr desc, IntPtr author); protected static void SetDetails (GLib.GType gtype, string longname, string klass, string description, string author) { diff --git a/gstreamer-sharp/Event.custom b/gstreamer-sharp/Event.custom index cdb7dd1dcd..44ab52ecb0 100644 --- a/gstreamer-sharp/Event.custom +++ b/gstreamer-sharp/Event.custom @@ -53,10 +53,10 @@ public Gst.Object Src { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern uint gst_event_get_seqnum (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_event_set_seqnum (IntPtr raw, uint seqnum); public uint Seqnum { @@ -76,7 +76,7 @@ public uint Seqnum { private Gst.Structure cached_structure = null; -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_get_structure (IntPtr raw); public Gst.Structure Structure { @@ -123,7 +123,7 @@ public bool IsSerialized { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern Gst.EventTypeFlags gst_event_type_get_flags (Gst.EventType type); public static Gst.EventTypeFlags GetTypeFlags (Gst.EventType type) { @@ -138,7 +138,7 @@ public static uint GetTypeNumber (Gst.EventType type) { return ( (uint) type) >> 4; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_custom (Gst.EventType type, IntPtr structure); public static Gst.Event NewCustom (Gst.EventType type, Gst.Structure structure) { @@ -149,7 +149,7 @@ public static Gst.Event NewCustom (Gst.EventType type, Gst.Structure structure) return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_flush_start (); public static Gst.Event NewFlushStart () { @@ -158,7 +158,7 @@ public static Gst.Event NewFlushStart () { return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_flush_stop (); public static Gst.Event NewFlushStop () { @@ -167,7 +167,7 @@ public static Gst.Event NewFlushStop () { return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_eos (); public static Gst.Event NewEos () { @@ -176,7 +176,7 @@ public static Gst.Event NewEos () { return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_new_segment_full (bool update, double rate, double applied_rate, Gst.Format format, long start, long stop, long position); public static Gst.Event NewNewSegment (bool update, double rate, double applied_rate, Gst.Format format, long start, long stop, long position) { @@ -189,7 +189,7 @@ public static Gst.Event NewNewSegment (bool update, double rate, Gst.Format form return NewNewSegment (update, rate, 1.0, format, start, stop, position); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_event_parse_new_segment_full (IntPtr raw, out bool update, out double rate, out double applied_rate, out Gst.Format format, out long start, out long stop, out long position); public void ParseNewSegment (out bool update, out double rate, out double applied_rate, out Gst.Format format, out long start, out long stop, out long position) { @@ -205,10 +205,10 @@ public void ParseNewSegment (out bool update, out double rate, Gst.Format format ParseNewSegment (out update, out rate, out applied_rate, out format, out start, out stop, out position); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_tag (IntPtr tags); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_tag_list_copy (IntPtr raw); public static Gst.Event NewTag (Gst.TagList tags) { @@ -217,7 +217,7 @@ public static Gst.Event NewTag (Gst.TagList tags) { return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_event_parse_tag (IntPtr ev, out IntPtr tags); public void ParseTag (out TagList tags) { @@ -234,7 +234,7 @@ public void ParseTag (out TagList tags) { } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_buffer_size (Gst.Format format, long min, long max, bool async); public static Gst.Event NewBufferSize (Gst.Format format, long min, long max, bool async) { @@ -243,7 +243,7 @@ public static Gst.Event NewBufferSize (Gst.Format format, long min, long max, bo return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_event_parse_buffer_size (IntPtr ev, out Gst.Format format, out long min, out long max, out bool async); public void ParseBufferSize (out Gst.Format format, out long min, out long max, out bool async) { @@ -253,7 +253,7 @@ public void ParseBufferSize (out Gst.Format format, out long min, out long max, gst_event_parse_buffer_size (Handle, out format, out min, out max, out async); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_qos (double proportion, long diff, ulong timestamp); public static Gst.Event NewQos (double proportion, long diff, ulong timestamp) { @@ -262,7 +262,7 @@ public static Gst.Event NewQos (double proportion, long diff, ulong timestamp) { return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_event_parse_qos (IntPtr ev, out double proportion, out long diff, out ulong timestamp); public void ParseQos (out double proportion, out long diff, out ulong timestamp) { @@ -273,7 +273,7 @@ public void ParseQos (out double proportion, out long diff, out ulong timestamp) } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_seek (double rate, Gst.Format format, Gst.SeekFlags flags, Gst.SeekType start_type, long start, Gst.SeekType stop_type, long stop); public static Gst.Event NewSeek (double rate, Gst.Format format, Gst.SeekFlags flags, Gst.SeekType start_type, long start, Gst.SeekType stop_type, long stop) { @@ -282,7 +282,7 @@ public static Gst.Event NewSeek (double rate, Gst.Format format, Gst.SeekFlags f return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_event_parse_seek (IntPtr ev, out double rate, out Gst.Format format, out Gst.SeekFlags flags, out Gst.SeekType start_type, out long start, out Gst.SeekType stop_type, out long stop); public void ParseSeek (out double rate, out Gst.Format format, out Gst.SeekFlags flags, out Gst.SeekType start_type, out long start, out Gst.SeekType stop_type, out long stop) { @@ -292,7 +292,7 @@ public void ParseSeek (out double rate, out Gst.Format format, out Gst.SeekFlags gst_event_parse_seek (Handle, out rate, out format, out flags, out start_type, out start, out stop_type, out stop); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_navigation (IntPtr structure); public static Gst.Event NewNavigation (Gst.Structure structure) { @@ -303,7 +303,7 @@ public static Gst.Event NewNavigation (Gst.Structure structure) { return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_event_new_latency (ulong latency); public static Gst.Event NewLatency (ulong latency) { @@ -312,7 +312,7 @@ public static Gst.Event NewLatency (ulong latency) { return ev; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_event_parse_latency (IntPtr ev, out ulong latency); public void ParseLatency (out ulong latency) { diff --git a/gstreamer-sharp/Iterator.cs b/gstreamer-sharp/Iterator.cs index 29dc742c55..5eb12bd947 100644 --- a/gstreamer-sharp/Iterator.cs +++ b/gstreamer-sharp/Iterator.cs @@ -79,11 +79,11 @@ namespace Gst { gst_iterator_free (iterator); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] static extern int gst_iterator_next (IntPtr iterator, out IntPtr elem); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] static extern void gst_iterator_resync (IntPtr iterator); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] static extern void gst_iterator_free (IntPtr iterator); } diff --git a/gstreamer-sharp/Message.custom b/gstreamer-sharp/Message.custom index 711ca5bc14..5ceecbb415 100644 --- a/gstreamer-sharp/Message.custom +++ b/gstreamer-sharp/Message.custom @@ -53,10 +53,10 @@ public Gst.Object Src { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern uint gst_message_get_seqnum (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_set_seqnum (IntPtr raw, uint seqnum); public uint Seqnum { @@ -76,7 +76,7 @@ public uint Seqnum { private Gst.Structure cached_structure = null; -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_get_structure (IntPtr raw); public Gst.Structure Structure { @@ -99,7 +99,7 @@ public Gst.Structure Structure { cached_structure = null; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_eos (IntPtr src); public static Message NewEos (Gst.Object src) { @@ -108,7 +108,7 @@ public static Message NewEos (Gst.Object src) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_error_get_message (uint domain, int code); static string GetMessage (uint domain, int code) { @@ -119,16 +119,16 @@ static string GetMessage (uint domain, int code) { return GLib.Marshaller.PtrToStringGFree (raw_ret); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern uint gst_core_error_quark (); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern uint gst_library_error_quark (); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern uint gst_stream_error_quark (); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern uint gst_resource_error_quark (); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_error (IntPtr src, ref Gst.GError error, IntPtr debug); public static Message NewError (Gst.Object src, Gst.CoreError error, string message, string debug) { @@ -218,7 +218,7 @@ public static Message NewError (Gst.Object src, Gst.ResourceError error) { return NewError (src, error, null, null); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_error (IntPtr msg, out IntPtr err, out IntPtr debug); public void ParseError (out Enum error, out string message, out string debug) { @@ -266,7 +266,7 @@ public void ParseError (out Enum error) { ParseError (out error, out tmp, out tmp2); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_warning (IntPtr src, ref Gst.GError error, IntPtr debug); public static Message NewWarning (Gst.Object src, Gst.CoreError error, string message, string debug) { @@ -357,7 +357,7 @@ public static Message NewWarning (Gst.Object src, Gst.ResourceError error) { return NewWarning (src, error, null, null); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_warning (IntPtr msg, out IntPtr err, out IntPtr debug); public void ParseWarning (out Enum error, out string message, out string debug) { @@ -405,7 +405,7 @@ public void ParseWarning (out Enum error) { ParseWarning (out error, out tmp, out tmp2); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_info (IntPtr src, ref Gst.GError error, IntPtr debug); public static Message NewInfo (Gst.Object src, Gst.CoreError error, string message, string debug) { @@ -496,7 +496,7 @@ public static Message NewInfo (Gst.Object src, Gst.ResourceError error) { return NewInfo (src, error, null, null); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_info (IntPtr msg, out IntPtr err, out IntPtr debug); public void ParseInfo (out Enum error, out string message, out string debug) { @@ -544,10 +544,10 @@ public void ParseInfo (out Enum error) { ParseInfo (out error, out tmp, out tmp2); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_tag (IntPtr src, IntPtr tags); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_tag_list_copy (IntPtr handle); public static Message NewTag (Gst.Object src, TagList tags) { @@ -556,7 +556,7 @@ public static Message NewTag (Gst.Object src, TagList tags) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_tag (IntPtr msg, out IntPtr tags); public void ParseTag (out TagList tags) { @@ -572,7 +572,7 @@ public void ParseTag (out TagList tags) { tags = (TagList) GLib.Opaque.GetOpaque (raw_ptr, typeof (TagList), true); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_buffering (IntPtr src, int percent); public static Message NewBuffering (Gst.Object src, int percent) { @@ -581,7 +581,7 @@ public static Message NewBuffering (Gst.Object src, int percent) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_buffering (IntPtr msg, out int percent); public void ParseBuffering (out int percent) { @@ -591,7 +591,7 @@ public void ParseBuffering (out int percent) { gst_message_parse_buffering (Handle, out percent); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_set_buffering_stats (IntPtr msg, Gst.BufferingMode mode, int avg_in, int avg_out, long buffering_left); public void SetBufferingStats (Gst.BufferingMode mode, int avg_in, int avg_out, long buffering_left) { @@ -603,7 +603,7 @@ public void SetBufferingStats (Gst.BufferingMode mode, int avg_in, int avg_out, gst_message_set_buffering_stats (Handle, mode, avg_in, avg_out, buffering_left); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_buffering_stats (IntPtr msg, out Gst.BufferingMode mode, out int avg_in, out int avg_out, out long buffering_left); public void ParseBufferingStats (out Gst.BufferingMode mode, out int avg_in, out int avg_out, out long buffering_left) { @@ -613,7 +613,7 @@ public void ParseBufferingStats (out Gst.BufferingMode mode, out int avg_in, out gst_message_parse_buffering_stats (Handle, out mode, out avg_in, out avg_out, out buffering_left); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_state_changed (IntPtr src, State oldstate, State newstate, State pendingstate); public static Message NewStateChanged (Gst.Object src, State oldstate, State newstate, State pendingstate) { @@ -622,7 +622,7 @@ public static Message NewStateChanged (Gst.Object src, State oldstate, State new return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_state_changed (IntPtr msg, out State oldstate, out State newstate, out State pendingstate); public void ParseStateChanged (out State oldstate, out State newstate, out State pendingstate) { @@ -632,7 +632,7 @@ public void ParseStateChanged (out State oldstate, out State newstate, out State gst_message_parse_state_changed (Handle, out oldstate, out newstate, out pendingstate); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_state_dirty (IntPtr src); public static Message NewStateDirty (Gst.Object src) { @@ -640,7 +640,7 @@ public static Message NewStateDirty (Gst.Object src) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_clock_provide (IntPtr src, IntPtr clock, bool ready); public static Message NewClockProvide (Gst.Object src, Gst.Clock clock, bool ready) { @@ -649,7 +649,7 @@ public static Message NewClockProvide (Gst.Object src, Gst.Clock clock, bool rea return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_clock_provide (IntPtr msg, out IntPtr clock, out bool ready); public void ParseClockProvide (out Gst.Clock clock, out bool ready) { @@ -663,7 +663,7 @@ public void ParseClockProvide (out Gst.Clock clock, out bool ready) { clock = GLib.Object.GetObject (raw, false) as Gst.Clock; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_clock_lost (IntPtr src, IntPtr clock); public static Message NewClockLost (Gst.Object src, Gst.Clock clock) { @@ -672,7 +672,7 @@ public static Message NewClockLost (Gst.Object src, Gst.Clock clock) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_clock_lost (IntPtr msg, out IntPtr clock); public void ParseClockLost (out Gst.Clock clock) { @@ -686,7 +686,7 @@ public void ParseClockLost (out Gst.Clock clock) { clock = GLib.Object.GetObject (raw, true) as Gst.Clock; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_new_clock (IntPtr src, IntPtr clock); public static Message NewNewClock (Gst.Object src, Gst.Clock clock) { @@ -695,7 +695,7 @@ public static Message NewNewClock (Gst.Object src, Gst.Clock clock) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_new_clock (IntPtr msg, out IntPtr clock); public void ParseNewClock (out Gst.Clock clock) { @@ -709,7 +709,7 @@ public void ParseNewClock (out Gst.Clock clock) { clock = GLib.Object.GetObject (raw, true) as Gst.Clock; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_application (IntPtr src, IntPtr structure); public static Message NewApplication (Gst.Object src, Gst.Structure structure) { @@ -720,7 +720,7 @@ public static Message NewApplication (Gst.Object src, Gst.Structure structure) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_element (IntPtr src, IntPtr structure); public static Message NewElement (Gst.Object src, Gst.Structure structure) { @@ -731,7 +731,7 @@ public static Message NewElement (Gst.Object src, Gst.Structure structure) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_custom (Gst.MessageType type, IntPtr src, IntPtr structure); public static Message NewCustom (Gst.MessageType type, Gst.Object src, Gst.Structure structure) { @@ -742,7 +742,7 @@ public static Message NewCustom (Gst.MessageType type, Gst.Object src, Gst.Struc return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_segment_start (IntPtr src, Gst.Format format, long position); public static Message NewSegmentStart (Gst.Object src, Gst.Format format, long position) { @@ -751,7 +751,7 @@ public static Message NewSegmentStart (Gst.Object src, Gst.Format format, long p return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_segment_start (IntPtr msg, out Gst.Format format, out long position); public void ParseSegmentStart (out Gst.Format format, out long position) { @@ -761,7 +761,7 @@ public void ParseSegmentStart (out Gst.Format format, out long position) { gst_message_parse_segment_start (Handle, out format, out position); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_segment_done (IntPtr src, Gst.Format format, long position); public static Message NewSegmentDone (Gst.Object src, Gst.Format format, long position) { @@ -770,7 +770,7 @@ public static Message NewSegmentDone (Gst.Object src, Gst.Format format, long po return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_segment_done (IntPtr msg, out Gst.Format format, out long position); public void ParseSegmentDone (out Gst.Format format, out long position) { @@ -780,7 +780,7 @@ public void ParseSegmentDone (out Gst.Format format, out long position) { gst_message_parse_segment_done (Handle, out format, out position); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_duration (IntPtr src, Gst.Format format, long duration); public static Message NewDuration (Gst.Object src, Gst.Format format, long duration) { @@ -789,7 +789,7 @@ public static Message NewDuration (Gst.Object src, Gst.Format format, long durat return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_duration (IntPtr msg, out Gst.Format format, out long duration); public void ParseDuration (out Gst.Format format, out long duration) { @@ -799,7 +799,7 @@ public void ParseDuration (out Gst.Format format, out long duration) { gst_message_parse_duration (Handle, out format, out duration); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_latency (IntPtr src); public static Message NewLatency (Gst.Object src) { @@ -808,7 +808,7 @@ public static Message NewLatency (Gst.Object src) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_async_start (IntPtr src, bool new_base_time); public static Message NewAsyncStart (Gst.Object src, bool new_base_time) { @@ -817,7 +817,7 @@ public static Message NewAsyncStart (Gst.Object src, bool new_base_time) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_async_start (IntPtr msg, out bool new_base_time); public void ParseAsyncStart (out bool new_base_time) { @@ -827,7 +827,7 @@ public void ParseAsyncStart (out bool new_base_time) { gst_message_parse_async_start (Handle, out new_base_time); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_async_done (IntPtr src); public static Message NewAsyncDone (Gst.Object src) { @@ -836,7 +836,7 @@ public static Message NewAsyncDone (Gst.Object src) { return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_message_new_structure_change (IntPtr src, StructureChangeType type, IntPtr owner, bool busy); public static Message NewStructureChange (Gst.Object src, StructureChangeType type, Gst.Element owner, bool busy) { @@ -845,7 +845,7 @@ public static Message NewStructureChange (Gst.Object src, StructureChangeType ty return msg; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_message_parse_structure_change (IntPtr msg, out StructureChangeType type, out IntPtr owner, out bool busy); public void ParseStructureChange (out StructureChangeType type, out Gst.Element owner, out bool busy) { diff --git a/gstreamer-sharp/MiniObject.cs b/gstreamer-sharp/MiniObject.cs index d43053e596..a260e77487 100644 --- a/gstreamer-sharp/MiniObject.cs +++ b/gstreamer-sharp/MiniObject.cs @@ -74,7 +74,7 @@ namespace Gst { Dispose (); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] static extern void gst_mini_object_unref (IntPtr raw); public virtual void Dispose () { @@ -97,7 +97,7 @@ namespace Gst { GC.SuppressFinalize (this); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] static extern IntPtr gst_mini_object_ref (IntPtr raw); public static MiniObject GetObject (IntPtr o, bool owned_ref) { @@ -330,7 +330,7 @@ namespace Gst { CreateNativeObject (); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] static extern IntPtr gst_mini_object_new (IntPtr gtype); protected virtual void CreateNativeObject () { @@ -352,7 +352,7 @@ namespace Gst { } } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] static extern IntPtr gst_mini_object_get_type(); public static GLib.GType GType { @@ -436,7 +436,7 @@ namespace Gst { } } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] static extern bool gst_mini_object_is_writable (IntPtr raw); public bool IsWritable { @@ -447,14 +447,14 @@ namespace Gst { } } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_dup_mini_object (ref GLib.Value v); public MiniObject (GLib.Value val) : base () { Raw = gst_value_dup_mini_object (ref val); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] private static extern void gst_value_set_mini_object (ref GLib.Value v, IntPtr o); public static explicit operator GLib.Value (MiniObject o) { @@ -480,7 +480,7 @@ namespace Gst { gst_mini_object_unref (old); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport ("libgstreamer-0.10.dll") ] static extern IntPtr gst_mini_object_copy (IntPtr raw); public Gst.MiniObject Copy() { diff --git a/gstreamer-sharp/MixerMessage.cs b/gstreamer-sharp/MixerMessage.cs index c6e1abfbd5..aea5071c78 100644 --- a/gstreamer-sharp/MixerMessage.cs +++ b/gstreamer-sharp/MixerMessage.cs @@ -8,7 +8,7 @@ namespace Gst.Interfaces { using Gst.Interfaces; public static class MixerMessage { - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern int gst_mixer_message_get_type (IntPtr message); public static Gst.Interfaces.MixerMessageType MessageGetType (Gst.Message message) { @@ -17,7 +17,7 @@ namespace Gst.Interfaces { return ret; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern void gst_mixer_message_parse_mute_toggled (IntPtr message, out IntPtr track, out bool mute); public static void ParseMuteToggled (Gst.Message message, out Gst.Interfaces.MixerTrack track, out bool mute) { @@ -28,7 +28,7 @@ namespace Gst.Interfaces { track = (MixerTrack) GLib.Object.GetObject (native_ptr, false); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern void gst_mixer_message_parse_option_changed (IntPtr message, out IntPtr options, out IntPtr value); public static void ParseOptionChanged (Gst.Message message, out Gst.Interfaces.MixerOptions options, out string value) { @@ -41,7 +41,7 @@ namespace Gst.Interfaces { value = GLib.Marshaller.Utf8PtrToString (native_value); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern void gst_mixer_message_parse_record_toggled (IntPtr message, out IntPtr track, out bool record); public static void ParseRecordToggled (Gst.Message message, out Gst.Interfaces.MixerTrack track, out bool record) { @@ -51,7 +51,7 @@ namespace Gst.Interfaces { track = (MixerTrack) GLib.Object.GetObject (native_ptr, false); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern void gst_mixer_message_parse_volume_changed (IntPtr message, out IntPtr track, out IntPtr volumes, out int num_channels); public static void ParseVolumeChanged (Gst.Message message, out Gst.Interfaces.MixerTrack track, out int[] volumes) { @@ -68,7 +68,7 @@ namespace Gst.Interfaces { GLib.Marshaller.Free (native_volumes); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern void gst_mixer_message_parse_options_list_changed (IntPtr message, out IntPtr options); public static void ParseOptionsListChanged (Gst.Message message, out Gst.Interfaces.MixerOptions options) { diff --git a/gstreamer-sharp/NavigationEvent.cs b/gstreamer-sharp/NavigationEvent.cs index 56b34d234f..810572ebcb 100644 --- a/gstreamer-sharp/NavigationEvent.cs +++ b/gstreamer-sharp/NavigationEvent.cs @@ -8,7 +8,7 @@ namespace Gst.Interfaces { using Gst.Interfaces; public static class NavigationEvent { - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern int gst_navigation_event_get_type (IntPtr evnt); public static Gst.Interfaces.NavigationEventType EventGetType (Gst.Event evnt) { @@ -17,7 +17,7 @@ namespace Gst.Interfaces { return ret; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_event_parse_key_event (IntPtr evnt, out IntPtr key); public static bool ParseKeyEvent (Gst.Event evnt, out string key) { @@ -29,21 +29,21 @@ namespace Gst.Interfaces { return ret; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_event_parse_mouse_button_event (IntPtr evnt, out int button, out double x, out double y); public static bool ParseMouseButtonEvent (Gst.Event evnt, out int button, out double x, out double y) { return gst_navigation_event_parse_mouse_button_event (evnt.Handle, out button, out x, out y); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_event_parse_mouse_move_event (IntPtr evnt, out double x, out double y); public static bool ParseMouseMoveEvent (Gst.Event evnt, out double x, out double y) { return gst_navigation_event_parse_mouse_move_event (evnt.Handle, out x, out y); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_event_parse_command (IntPtr evnt, out int command); public static bool ParseCommand (Gst.Event evnt, out Gst.Interfaces.NavigationCommand command) { diff --git a/gstreamer-sharp/NavigationMessage.cs b/gstreamer-sharp/NavigationMessage.cs index 849526bbed..e9a4fc96ba 100644 --- a/gstreamer-sharp/NavigationMessage.cs +++ b/gstreamer-sharp/NavigationMessage.cs @@ -8,7 +8,7 @@ namespace Gst.Interfaces { using Gst.Interfaces; public static class NavigationMessage { - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern int gst_navigation_message_get_type (IntPtr message); public static Gst.Interfaces.NavigationMessageType MessageGetType (Gst.Message message) { @@ -17,7 +17,7 @@ namespace Gst.Interfaces { return ret; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern IntPtr gst_navigation_message_new_mouse_over (IntPtr src, bool active); public static Gst.Message NewMouseOver (Gst.Object src, bool active) { @@ -25,14 +25,14 @@ namespace Gst.Interfaces { return msg; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_message_parse_mouse_over (IntPtr msg, out bool active); public static bool ParseMouseOver (Gst.Message msg, out bool active) { return gst_navigation_message_parse_mouse_over (msg.Handle, out active); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern IntPtr gst_navigation_message_new_angles_changed (IntPtr src, uint cur_angle, uint n_angles); public static Gst.Message NewAnglesChanged (Gst.Object src, uint cur_angle, uint n_angles) { @@ -40,14 +40,14 @@ namespace Gst.Interfaces { return msg; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_message_parse_angles_changed (IntPtr msg, out uint cur_angle, out uint n_angles); public static bool ParseMouseOver (Gst.Message msg, out uint cur_angle, out uint n_angles) { return gst_navigation_message_parse_angles_changed (msg.Handle, out cur_angle, out n_angles); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern IntPtr gst_navigation_message_new_commands_changed (IntPtr src); public static Gst.Message NewCommandsChanged (Gst.Object src) { diff --git a/gstreamer-sharp/NavigationQuery.cs b/gstreamer-sharp/NavigationQuery.cs index ce05a3f134..03fae2fba0 100644 --- a/gstreamer-sharp/NavigationQuery.cs +++ b/gstreamer-sharp/NavigationQuery.cs @@ -8,7 +8,7 @@ namespace Gst.Interfaces { using Gst.Interfaces; public static class NavigationQuery { - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern int gst_navigation_query_get_type (IntPtr query); public static Gst.Interfaces.NavigationQueryType QueryGetType (Gst.Query query) { @@ -17,7 +17,7 @@ namespace Gst.Interfaces { return ret; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern IntPtr gst_navigation_query_new_commands (); public static Gst.Query NewCommands () { @@ -25,7 +25,7 @@ namespace Gst.Interfaces { return query; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern void gst_navigation_query_set_commandsv (IntPtr query, uint n_commands, int[] cmds); public static void SetCommands (Gst.Query query, Gst.Interfaces.NavigationCommand[] cmds) { @@ -39,9 +39,9 @@ namespace Gst.Interfaces { gst_navigation_query_set_commandsv (query.Handle, (uint) raw_cmds.Length, raw_cmds); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_query_parse_commands_length (IntPtr query, out uint n_commands); - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_query_parse_commands_nth (IntPtr query, uint nth, out int cmd); public static bool ParseCommands (Gst.Query query, out Gst.Interfaces.NavigationCommand[] cmds) { @@ -64,7 +64,7 @@ namespace Gst.Interfaces { return true; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern IntPtr gst_navigation_query_new_angles (); public static Gst.Query NewAngles () { @@ -72,7 +72,7 @@ namespace Gst.Interfaces { return query; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern void gst_navigation_query_set_angles (IntPtr query, uint cur_angle, uint n_angles); public static void SetAngles (Gst.Query query, uint cur_angle, uint n_angles) { @@ -82,7 +82,7 @@ namespace Gst.Interfaces { gst_navigation_query_set_angles (query.Handle, cur_angle, n_angles); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport("libgstinterfaces-0.10.dll") ] static extern bool gst_navigation_query_parse_angles (IntPtr query, out uint cur_angle, out uint n_angles); public static bool ParseAngles (Gst.Query query, out uint cur_angle, out uint n_angles) { diff --git a/gstreamer-sharp/Object.custom b/gstreamer-sharp/Object.custom index 563abf7b79..d24352223a 100644 --- a/gstreamer-sharp/Object.custom +++ b/gstreamer-sharp/Object.custom @@ -58,9 +58,9 @@ public object Emit (string signal, params object[] parameters) { return DynamicSignal.Emit (this, signal, parameters); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_object_sink (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_object_ref (IntPtr raw); protected override IntPtr Raw { @@ -77,9 +77,9 @@ protected override IntPtr Raw { } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_object_set_parent (IntPtr raw, IntPtr parent); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_object_get_parent (IntPtr raw); public Gst.Object Parent { @@ -127,7 +127,7 @@ public bool TryLock () { return g_mutex_trylock (LockPtr); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_object_check_uniqueness (IntPtr list, IntPtr name); public static bool CheckUniqueness (Gst.Object[] objects, string name) { diff --git a/gstreamer-sharp/Pad.custom b/gstreamer-sharp/Pad.custom index 71b0e41ee8..fa40873c53 100644 --- a/gstreamer-sharp/Pad.custom +++ b/gstreamer-sharp/Pad.custom @@ -1,6 +1,6 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_pad_get_pad_template_caps (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_caps_copy (IntPtr raw); public Gst.Caps PadTemplateCaps { @@ -11,28 +11,28 @@ public Gst.Caps PadTemplateCaps { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_remove_data_probe (IntPtr raw, uint handler_id); public void RemoveDataProbe (ulong handler_id) { gst_pad_remove_data_probe (Handle, (uint) handler_id); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_remove_event_probe (IntPtr raw, uint handler_id); public void RemoveEventProbe (ulong handler_id) { gst_pad_remove_event_probe (Handle, (uint) handler_id); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_remove_buffer_probe (IntPtr raw, uint handler_id); public void RemoveBufferProbe (ulong handler_id) { gst_pad_remove_buffer_probe (Handle, (uint) handler_id); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern int gst_pad_alloc_buffer (IntPtr raw, ulong offset, int size, IntPtr caps, out IntPtr buf); public Gst.FlowReturn AllocBuffer (ulong offset, int size, Gst.Caps caps, out Gst.Buffer buf) { @@ -43,7 +43,7 @@ public Gst.FlowReturn AllocBuffer (ulong offset, int size, Gst.Caps caps, out Gs return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern int gst_pad_alloc_buffer_and_set_caps (IntPtr raw, ulong offset, int size, IntPtr caps, out IntPtr buf); public Gst.FlowReturn AllocBufferAndSetCaps (ulong offset, int size, Gst.Caps caps, out Gst.Buffer buf) { @@ -54,7 +54,7 @@ public Gst.FlowReturn AllocBufferAndSetCaps (ulong offset, int size, Gst.Caps ca return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_bufferalloc_function (IntPtr raw, GstSharp.PadBufferAllocFunctionNative bufalloc); public Gst.PadBufferAllocFunction BufferAllocFunction { @@ -68,7 +68,7 @@ public Gst.PadBufferAllocFunction BufferAllocFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_chain_function (IntPtr raw, GstSharp.PadChainFunctionNative chain); public Gst.PadChainFunction ChainFunction { @@ -82,7 +82,7 @@ public Gst.PadChainFunction ChainFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_checkgetrange_function (IntPtr raw, GstSharp.PadCheckGetRangeFunctionNative check); public Gst.PadCheckGetRangeFunction CheckGetRangeFunction { @@ -96,7 +96,7 @@ public Gst.PadCheckGetRangeFunction CheckGetRangeFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_getrange_function (IntPtr raw, GstSharp.PadGetRangeFunctionNative get); public Gst.PadGetRangeFunction GetRangeFunction { @@ -110,7 +110,7 @@ public Gst.PadGetRangeFunction GetRangeFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_event_function (IntPtr raw, GstSharp.PadEventFunctionNative evnt); public Gst.PadEventFunction EventFunction { @@ -124,7 +124,7 @@ public Gst.PadEventFunction EventFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_link_function (IntPtr raw, GstSharp.PadLinkFunctionNative link); public Gst.PadLinkFunction LinkFunction { @@ -138,7 +138,7 @@ public Gst.PadLinkFunction LinkFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_unlink_function (IntPtr raw, GstSharp.PadUnlinkFunctionNative unlink); public Gst.PadUnlinkFunction UnlinkFunction { @@ -152,7 +152,7 @@ public Gst.PadUnlinkFunction UnlinkFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_acceptcaps_function (IntPtr raw, GstSharp.PadAcceptCapsFunctionNative acceptcaps); public Gst.PadAcceptCapsFunction AcceptCapsFunction { @@ -166,7 +166,7 @@ public Gst.PadAcceptCapsFunction AcceptCapsFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_getcaps_function (IntPtr raw, GstSharp.PadGetCapsFunctionNative getcaps); public Gst.PadGetCapsFunction GetCapsFunction { @@ -180,7 +180,7 @@ public Gst.PadGetCapsFunction GetCapsFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_setcaps_function (IntPtr raw, GstSharp.PadSetCapsFunctionNative setcaps); public Gst.PadSetCapsFunction SetCapsFunction { @@ -194,7 +194,7 @@ public Gst.PadSetCapsFunction SetCapsFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_fixatecaps_function (IntPtr raw, GstSharp.PadFixateCapsFunctionNative fixatecaps); public Gst.PadFixateCapsFunction FixateCapsFunction { @@ -208,7 +208,7 @@ public Gst.PadFixateCapsFunction FixateCapsFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_activate_function (IntPtr raw, GstSharp.PadActivateFunctionNative activate); public Gst.PadActivateFunction ActivateFunction { @@ -222,7 +222,7 @@ public Gst.PadActivateFunction ActivateFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_activatepull_function (IntPtr raw, GstSharp.PadActivateModeFunctionNative activatepull); public Gst.PadActivateModeFunction ActivatePullFunction { @@ -236,7 +236,7 @@ public Gst.PadActivateModeFunction ActivatePullFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_activatepush_function (IntPtr raw, GstSharp.PadActivateModeFunctionNative activatepush); public Gst.PadActivateModeFunction ActivatePushFunction { @@ -250,9 +250,9 @@ public Gst.PadActivateModeFunction ActivatePushFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern int gst_pad_push (IntPtr raw, IntPtr buffer); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_mini_object_ref (IntPtr raw); public Gst.FlowReturn Push (Gst.Buffer buffer) { @@ -261,7 +261,7 @@ public Gst.FlowReturn Push (Gst.Buffer buffer) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_pad_push_event (IntPtr raw, IntPtr evnt); public bool PushEvent (Gst.Event evnt) { @@ -270,7 +270,7 @@ public bool PushEvent (Gst.Event evnt) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern int gst_pad_pull_range (IntPtr raw, ulong offset, uint size, out IntPtr buffer); public Gst.FlowReturn PullRange (ulong offset, uint size, out Gst.Buffer buffer) { @@ -282,7 +282,7 @@ public Gst.FlowReturn PullRange (ulong offset, uint size, out Gst.Buffer buffer) } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_pad_send_event (IntPtr raw, IntPtr evnt); public bool SendEvent (Gst.Event evnt) { @@ -291,7 +291,7 @@ public bool SendEvent (Gst.Event evnt) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_pad_event_default (IntPtr raw, IntPtr evnt); public bool EventDefault (Gst.Event evnt) { @@ -300,7 +300,7 @@ public bool EventDefault (Gst.Event evnt) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_query_function (IntPtr raw, GstSharp.PadQueryFunctionNative query); public Gst.PadQueryFunction QueryFunction { @@ -314,7 +314,7 @@ public Gst.PadQueryFunction QueryFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_pad_set_query_type_function (IntPtr raw, GstSharp.PadQueryTypeFunctionNative query); public Gst.PadQueryTypeFunction QueryTypeFunction { @@ -328,7 +328,7 @@ public Gst.PadQueryTypeFunction QueryTypeFunction { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_pad_get_query_types (IntPtr raw); public Gst.QueryType[] QueryTypes { @@ -354,7 +354,7 @@ public Gst.QueryType[] QueryTypes { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_pad_get_query_types_default (IntPtr raw); static Gst.QueryType[] GetQueryTypesDefault (Gst.Pad pad) { @@ -378,7 +378,7 @@ static Gst.QueryType[] GetQueryTypesDefault (Gst.Pad pad) { return (Gst.QueryType[]) result.ToArray (typeof (Gst.QueryType)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern int gst_pad_chain (IntPtr raw, IntPtr buffer); public Gst.FlowReturn Chain (Gst.Buffer buffer) { @@ -431,9 +431,9 @@ public bool StreamTryLock () { return g_static_rec_mutex_trylock (StreamLockPtr); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_pad_iterate_internal_links (IntPtr pad); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_pad_iterate_internal_links_default (IntPtr pad); diff --git a/gstreamer-sharp/PadTemplate.custom b/gstreamer-sharp/PadTemplate.custom index 96eb874bcf..f195ebdf0c 100644 --- a/gstreamer-sharp/PadTemplate.custom +++ b/gstreamer-sharp/PadTemplate.custom @@ -1,7 +1,7 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_pad_template_new (IntPtr name_template, int direction, int presence, IntPtr caps); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_caps_ref (IntPtr handle); public PadTemplate (string name_template, Gst.PadDirection direction, Gst.PadPresence presence, Gst.Caps caps) : base (IntPtr.Zero) { diff --git a/gstreamer-sharp/Plugin.custom b/gstreamer-sharp/Plugin.custom index a992650c3a..d58449db65 100644 --- a/gstreamer-sharp/Plugin.custom +++ b/gstreamer-sharp/Plugin.custom @@ -1,4 +1,4 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_plugin_load_file (IntPtr filename, out IntPtr gerror); public static Gst.Plugin LoadFile (string filename) { diff --git a/gstreamer-sharp/PresetDefault.cs b/gstreamer-sharp/PresetDefault.cs index ded7b52646..ccea8c70e7 100644 --- a/gstreamer-sharp/PresetDefault.cs +++ b/gstreamer-sharp/PresetDefault.cs @@ -29,7 +29,7 @@ namespace Gst { [DllImport ("libgobject-2.0-0.dll") ] static extern IntPtr g_type_default_interface_ref (IntPtr type); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_preset_get_type(); static PresetDefault () { diff --git a/gstreamer-sharp/Query.custom b/gstreamer-sharp/Query.custom index 086118f479..5d0a63100c 100644 --- a/gstreamer-sharp/Query.custom +++ b/gstreamer-sharp/Query.custom @@ -2,7 +2,7 @@ public Query (GLib.Value val) : base (val) { } private Gst.Structure cached_structure = null; -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_get_structure (IntPtr raw); public Gst.Structure Structure { @@ -31,7 +31,7 @@ public string TypeName { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_application (QueryType type, IntPtr structure); public static Query NewApplication (Gst.QueryType type, Structure structure) { @@ -42,7 +42,7 @@ public static Query NewApplication (Gst.QueryType type, Structure structure) { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_convert (Gst.Format src_format, long value, Gst.Format dest_format); public static Query NewConvert (Gst.Format src_format, long value, Gst.Format dest_format) { @@ -51,7 +51,7 @@ public static Query NewConvert (Gst.Format src_format, long value, Gst.Format de return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_convert (IntPtr query, Gst.Format src_format, long src_value, Gst.Format dest_format, long dest_value); public void SetConvert (Gst.Format src_format, long src_value, Gst.Format dest_format, long dest_value) { @@ -63,7 +63,7 @@ public void SetConvert (Gst.Format src_format, long src_value, Gst.Format dest_f gst_query_set_convert (Handle, src_format, src_value, dest_format, dest_value); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_convert (IntPtr query, out Gst.Format src_format, out long src_value, out Gst.Format dest_format, out long dest_value); public void ParseConvert (out Gst.Format src_format, out long src_value, out Gst.Format dest_format, out long dest_value) { @@ -73,7 +73,7 @@ public void ParseConvert (out Gst.Format src_format, out long src_value, out Gst gst_query_parse_convert (Handle, out src_format, out src_value, out dest_format, out dest_value); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_position (Gst.Format format); public static Query NewPosition (Gst.Format format) { @@ -82,7 +82,7 @@ public static Query NewPosition (Gst.Format format) { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_position (IntPtr query, Gst.Format format, long cur); public void SetPosition (Gst.Format format, long cur) { @@ -94,7 +94,7 @@ public void SetPosition (Gst.Format format, long cur) { gst_query_set_position (Handle, format, cur); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_position (IntPtr query, out Gst.Format format, out long cur); public void ParsePosition (out Gst.Format format, out long cur) { @@ -104,7 +104,7 @@ public void ParsePosition (out Gst.Format format, out long cur) { gst_query_parse_position (Handle, out format, out cur); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_duration (Gst.Format format); public static Query NewDuration (Gst.Format format) { @@ -113,7 +113,7 @@ public static Query NewDuration (Gst.Format format) { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_duration (IntPtr query, Gst.Format format, long duration); public void SetDuration (Gst.Format format, long duration) { @@ -125,7 +125,7 @@ public void SetDuration (Gst.Format format, long duration) { gst_query_set_duration (Handle, format, duration); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_duration (IntPtr query, out Gst.Format format, out long duration); public void ParseDuration (out Gst.Format format, out long duration) { @@ -135,7 +135,7 @@ public void ParseDuration (out Gst.Format format, out long duration) { gst_query_parse_duration (Handle, out format, out duration); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_latency (); public static Query NewLatency() { @@ -144,7 +144,7 @@ public static Query NewLatency() { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_latency (IntPtr query, bool live, ulong min, ulong max); public void SetLatency (bool live, ulong min, ulong max) { @@ -156,7 +156,7 @@ public void SetLatency (bool live, ulong min, ulong max) { gst_query_set_latency (Handle, live, min, max); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_latency (IntPtr query, out bool live, out ulong min, out ulong max); public void ParseLatency (out bool live, out ulong min, out ulong max) { @@ -166,7 +166,7 @@ public void ParseLatency (out bool live, out ulong min, out ulong max) { gst_query_parse_latency (Handle, out live, out min, out max); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_seeking (Gst.Format format); public static Query NewSeeking (Gst.Format format) { @@ -175,7 +175,7 @@ public static Query NewSeeking (Gst.Format format) { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_seeking (IntPtr query, Gst.Format format, bool seekable, long segment_start, long segment_stop); public void SetSeeking (Gst.Format format, bool seekable, long segment_start, long segment_stop) { @@ -187,7 +187,7 @@ public void SetSeeking (Gst.Format format, bool seekable, long segment_start, lo gst_query_set_seeking (Handle, format, seekable, segment_start, segment_stop); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_seeking (IntPtr query, out Gst.Format format, out bool seekable, out long segment_start, out long segment_stop); public void ParseSeeking (out Gst.Format format, out bool seekable, out long segment_start, out long segment_stop) { @@ -197,7 +197,7 @@ public void ParseSeeking (out Gst.Format format, out bool seekable, out long seg gst_query_parse_seeking (Handle, out format, out seekable, out segment_start, out segment_stop); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_formats (); public static Query NewFormats() { @@ -217,9 +217,9 @@ public void SetFormats (Gst.Format[] formats) { s["formats"] = l; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_formats_length (IntPtr query, out uint n_formats); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_formats_nth (IntPtr query, uint nth, out Gst.Format format); public void ParseFormats (out Gst.Format[] formats) { @@ -235,7 +235,7 @@ public void ParseFormats (out Gst.Format[] formats) { gst_query_parse_formats_nth (Handle, i, out formats[i]); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_segment (Gst.Format format); public static Query NewSegment (Gst.Format format) { @@ -244,7 +244,7 @@ public static Query NewSegment (Gst.Format format) { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_segment (IntPtr query, double rate, Gst.Format format, long segment_start, long segment_stop); public void SetSegment (double rate, Gst.Format format, long segment_start, long segment_stop) { @@ -256,7 +256,7 @@ public void SetSegment (double rate, Gst.Format format, long segment_start, long gst_query_set_segment (Handle, rate, format, segment_start, segment_stop); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_segment (IntPtr query, out double rate, out Gst.Format format, out long segment_start, out long segment_stop); public void ParseSegment (out double rate, out Gst.Format format, out long segment_start, out long segment_stop) { @@ -266,7 +266,7 @@ public void ParseSegment (out double rate, out Gst.Format format, out long segme gst_query_parse_segment (Handle, out rate, out format, out segment_start, out segment_stop); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_buffering (Gst.Format format); public static Query NewBuffering (Gst.Format format) { @@ -275,7 +275,7 @@ public static Query NewBuffering (Gst.Format format) { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_buffering_percent (IntPtr query, bool busy, int percent); public void SetBufferingPercent (bool busy, int percent) { @@ -287,7 +287,7 @@ public void SetBufferingPercent (bool busy, int percent) { gst_query_set_buffering_percent (Handle, busy, percent); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_buffering_percent (IntPtr query, out bool busy, out int percent); public void ParseBufferingPercent (out bool busy, out int percent) { @@ -297,7 +297,7 @@ public void ParseBufferingPercent (out bool busy, out int percent) { gst_query_parse_buffering_percent (Handle, out busy, out percent); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_buffering_stats (IntPtr query, Gst.BufferingMode mode, int avg_in, int avg_out, long buffering_left); public void SetBufferingStats (Gst.BufferingMode mode, int avg_in, int avg_out, long buffering_left) { @@ -309,7 +309,7 @@ public void SetBufferingStats (Gst.BufferingMode mode, int avg_in, int avg_out, gst_query_set_buffering_stats (Handle, mode, avg_in, avg_out, buffering_left); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_buffering_stats (IntPtr query, out Gst.BufferingMode mode, out int avg_in, out int avg_out, out long buffering_left); public void ParseBufferingStats (out Gst.BufferingMode mode, out int avg_in, out int avg_out, out long buffering_left) { @@ -319,7 +319,7 @@ public void ParseBufferingStats (out Gst.BufferingMode mode, out int avg_in, out gst_query_parse_buffering_stats (Handle, out mode, out avg_in, out avg_out, out buffering_left); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_buffering_range (IntPtr query, Gst.Format format, long start, long stop, long estimated_total); public void SetBufferingRange (Gst.Format format, long start, long stop, long estimated_total) { @@ -331,7 +331,7 @@ public void SetBufferingRange (Gst.Format format, long start, long stop, long es gst_query_set_buffering_range (Handle, format, start, stop, estimated_total); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_buffering_range (IntPtr query, out Gst.Format format, out long start, out long stop, out long estimated_total); public void ParseBufferingRange (out Gst.Format format, out long start, out long stop, out long estimated_total) { @@ -341,7 +341,7 @@ public void ParseBufferingRange (out Gst.Format format, out long start, out long gst_query_parse_buffering_range (Handle, out format, out start, out stop, out estimated_total); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_query_new_uri (); public static Query NewUri() { @@ -350,7 +350,7 @@ public static Query NewUri() { return query; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_set_uri (IntPtr query, IntPtr uri); public void SetUri (string uri) { @@ -364,7 +364,7 @@ public void SetUri (string uri) { GLib.Marshaller.Free (raw_string); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_query_parse_uri (IntPtr query, out IntPtr uri); public void ParseUri (out string uri) { diff --git a/gstreamer-sharp/Structure.custom b/gstreamer-sharp/Structure.custom index b8be1da55a..a282f7a635 100644 --- a/gstreamer-sharp/Structure.custom +++ b/gstreamer-sharp/Structure.custom @@ -1,6 +1,6 @@ internal bool FreeNative = true; -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_structure_free (IntPtr raw); protected override void Free (IntPtr raw) { @@ -30,10 +30,10 @@ class FinalizerInfo { GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_structure_get_name (IntPtr raw); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_structure_set_name (IntPtr raw, IntPtr name); public string Name { @@ -52,7 +52,7 @@ public string Name { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_structure_set_value (IntPtr raw, IntPtr fieldname, IntPtr value); public void SetValue (string fieldname, GLib.Value value) { @@ -67,7 +67,7 @@ public void SetValue (string fieldname, GLib.Value value) { Marshal.FreeHGlobal (native_value); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_structure_fixate_field_boolean (IntPtr raw, IntPtr field_name, bool target); public bool FixateFieldBoolean (string field_name, bool target) { @@ -81,7 +81,7 @@ public bool FixateFieldBoolean (string field_name, bool target) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_structure_remove_all_fields (IntPtr raw); public void RemoveAllFields() { @@ -91,7 +91,7 @@ public void RemoveAllFields() { gst_structure_remove_all_fields (Handle); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_structure_remove_field (IntPtr raw, IntPtr fieldname); public void RemoveField (string fieldname) { @@ -103,7 +103,7 @@ public void RemoveField (string fieldname) { GLib.Marshaller.Free (native_fieldname); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_structure_fixate_field_nearest_double (IntPtr raw, IntPtr field_name, double target); public bool FixateFieldNearestDouble (string field_name, double target) { @@ -117,7 +117,7 @@ public bool FixateFieldNearestDouble (string field_name, double target) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_structure_fixate_field_nearest_int (IntPtr raw, IntPtr field_name, int target); public bool FixateFieldNearestInt (string field_name, int target) { @@ -131,7 +131,7 @@ public bool FixateFieldNearestInt (string field_name, int target) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_structure_fixate_field_nearest_fraction (IntPtr raw, IntPtr field_name, int target_numerator, int target_denominator); public bool FixateFieldNearestFraction (string field_name, int target_numerator, int target_denominator) { @@ -212,7 +212,7 @@ public static Structure FromString (string structure) { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_structure_from_string (IntPtr structure, IntPtr end); public bool FixateFieldNearestFraction (string field_name, Fraction target) { diff --git a/gstreamer-sharp/Tag.custom b/gstreamer-sharp/Tag.custom index 942140282f..9a03005f36 100644 --- a/gstreamer-sharp/Tag.custom +++ b/gstreamer-sharp/Tag.custom @@ -9,14 +9,14 @@ public static void Register (string name, Gst.TagFlags flag, System.Type type, s Register (name, flag, gt, nick, blurb, func); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_tag_merge_strings_with_comma (out GLib.Value dest, ref GLib.Value src); public static void MergeStringsWithComma (out GLib.Value dest, ref GLib.Value src) { gst_tag_merge_strings_with_comma (out dest, ref src); } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern void gst_tag_merge_use_first (out GLib.Value dest, ref GLib.Value src); public static void MergeUseFirst (out GLib.Value dest, ref GLib.Value src) { diff --git a/gstreamer-sharp/TagList.custom b/gstreamer-sharp/TagList.custom index f8ebd5afe5..4fc66d8983 100644 --- a/gstreamer-sharp/TagList.custom +++ b/gstreamer-sharp/TagList.custom @@ -1,4 +1,4 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_structure_to_string (IntPtr handle); public override string ToString () { @@ -7,7 +7,7 @@ public override string ToString () { return ret; } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern int gst_structure_n_fields (IntPtr raw); public int Size { @@ -18,9 +18,9 @@ public int Size { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_tag_list_copy_value (ref GLib.Value dest, IntPtr list, IntPtr tag); -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_tag_list_get_value_index (IntPtr raw, IntPtr tag, uint index); public object this[string tag, uint index] { @@ -84,7 +84,7 @@ public void Add (Gst.TagMergeMode mode, params object[] parameters) { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_structure_nth_field_name (IntPtr raw, uint index); private string NthFieldName (uint index) { @@ -103,7 +103,7 @@ public string[] Tags { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_structure_get_value (IntPtr raw, IntPtr fieldname); public Gst.List GetTag (string tag) { diff --git a/gstreamer-sharp/TunerNorm.custom b/gstreamer-sharp/TunerNorm.custom index a80b740161..dc7be60dc5 100644 --- a/gstreamer-sharp/TunerNorm.custom +++ b/gstreamer-sharp/TunerNorm.custom @@ -12,7 +12,7 @@ public Gst.Fraction Framerate { } } -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_set_fraction (IntPtr v, int numerator, int denominator); public TunerNorm (string label, Gst.Fraction framerate) { diff --git a/gstreamer-sharp/TypeFind.custom b/gstreamer-sharp/TypeFind.custom index 2fb21da72f..aadb008c4c 100644 --- a/gstreamer-sharp/TypeFind.custom +++ b/gstreamer-sharp/TypeFind.custom @@ -1,4 +1,4 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_type_find_peek (IntPtr raw, long offset, uint size); public byte[] Peek (long offset, uint size) { diff --git a/gstreamer-sharp/TypeFindFactory.custom b/gstreamer-sharp/TypeFindFactory.custom index 0440ad05a6..aad8d73016 100644 --- a/gstreamer-sharp/TypeFindFactory.custom +++ b/gstreamer-sharp/TypeFindFactory.custom @@ -1,4 +1,4 @@ -[DllImport ("gstreamer-0.10.dll") ] +[DllImport("libgstreamer-0.10.dll") ] static extern bool gst_type_find_register (IntPtr plugin, IntPtr name, uint rank, GstSharp.TypeFindFunctionNative func, IntPtr[] extensions, IntPtr possible_caps, IntPtr data, IntPtr data_notify); public static bool Register (Gst.Plugin plugin, string name, uint rank, Gst.TypeFindFunction func, string[] extensions, Gst.Caps possible_caps) { diff --git a/gstreamer-sharp/Value.cs b/gstreamer-sharp/Value.cs index 99add9edea..68e8dca539 100644 --- a/gstreamer-sharp/Value.cs +++ b/gstreamer-sharp/Value.cs @@ -114,13 +114,13 @@ namespace Gst { return new Fraction (a.Numerator * b.Denominator, a.Denominator * b.Numerator); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_set_fraction (ref GLib.Value v, int numerator, int denominator); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern int gst_value_get_fraction_numerator (ref GLib.Value v); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern int gst_value_get_fraction_denominator (ref GLib.Value v); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_fraction_get_type (); } @@ -162,13 +162,13 @@ namespace Gst { return val; } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_double_range_get_type (); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_set_double_range (ref GLib.Value v, double min, double max); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern double gst_value_get_double_range_min (ref GLib.Value v); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern double gst_value_get_double_range_max (ref GLib.Value v); } @@ -210,13 +210,13 @@ namespace Gst { return val; } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_int_range_get_type (); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_set_int_range (ref GLib.Value v, int min, int max); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern int gst_value_get_int_range_min (ref GLib.Value v); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern int gst_value_get_int_range_max (ref GLib.Value v); } @@ -276,13 +276,13 @@ namespace Gst { return val; } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_fraction_range_get_type (); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_set_fraction_range (ref GLib.Value v, ref GLib.Value min, ref GLib.Value max); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_get_fraction_range_min (ref GLib.Value v); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_get_fraction_range_max (ref GLib.Value v); } @@ -352,11 +352,11 @@ namespace Gst { return fourcc.ToString (); } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_fourcc_get_type (); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_set_fourcc (ref GLib.Value v, uint fourcc); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern uint gst_value_get_fourcc (ref GLib.Value v); } @@ -433,11 +433,11 @@ namespace Gst { [DllImport ("libglib-2.0-0.dll") ] private static extern void g_date_free (IntPtr date); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_date_get_type (); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_get_date (ref GLib.Value val); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_set_date (ref GLib.Value val, IntPtr date); } @@ -512,13 +512,13 @@ namespace Gst { } } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_list_get_type (); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern uint gst_value_list_get_size (ref GLib.Value val); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_list_get_value (ref GLib.Value val, uint index); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_list_append_value (ref GLib.Value val, ref GLib.Value el); } @@ -593,13 +593,13 @@ namespace Gst { } } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_array_get_type (); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern uint gst_value_array_get_size (ref GLib.Value val); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_value_array_get_value (ref GLib.Value val, uint index); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_value_array_append_value (ref GLib.Value val, ref GLib.Value el); } } diff --git a/gstreamer-sharp/Version.cs b/gstreamer-sharp/Version.cs index 6105030ba2..cf8a483beb 100644 --- a/gstreamer-sharp/Version.cs +++ b/gstreamer-sharp/Version.cs @@ -57,10 +57,10 @@ namespace Gst { } } - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern void gst_version (out uint major, out uint minor, out uint micro, out uint nano); - [DllImport ("gstreamer-0.10.dll") ] + [DllImport("libgstreamer-0.10.dll") ] private static extern IntPtr gst_version_string(); } } diff --git a/gstreamer-sharp/baseplugins/XvImageSink.cs b/gstreamer-sharp/baseplugins/XvImageSink.cs index adf391c8ae..118f278b05 100644 --- a/gstreamer-sharp/baseplugins/XvImageSink.cs +++ b/gstreamer-sharp/baseplugins/XvImageSink.cs @@ -12,35 +12,35 @@ namespace Gst.BasePlugins { return ElementFactory.Make ("xvimagesink", name) as XvImageSink; } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport ("libgstinterfaces-0.10.dll") ] static extern void gst_x_overlay_expose (IntPtr raw); public void Expose() { gst_x_overlay_expose (Handle); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport ("libgstinterfaces-0.10.dll") ] static extern void gst_x_overlay_handle_events (IntPtr raw, bool handle_events); public void HandleEvents (bool handle_events) { gst_x_overlay_handle_events (Handle, handle_events); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport ("libgstinterfaces-0.10.dll") ] static extern void gst_x_overlay_got_xwindow_id (IntPtr raw, UIntPtr xwindow_id); public void GotXwindowId (ulong xwindow_id) { gst_x_overlay_got_xwindow_id (Handle, new UIntPtr (xwindow_id)); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport ("libgstinterfaces-0.10.dll") ] static extern void gst_x_overlay_prepare_xwindow_id (IntPtr raw); public void PrepareXwindowId() { gst_x_overlay_prepare_xwindow_id (Handle); } - [DllImport ("gstinterfaces-0.10.dll") ] + [DllImport ("libgstinterfaces-0.10.dll") ] static extern void gst_x_overlay_set_xwindow_id (IntPtr raw, UIntPtr xwindow_id); public ulong XwindowId { diff --git a/gstreamer-sharp/gstreamer-api.raw b/gstreamer-sharp/gstreamer-api.raw index 3e37dfdc51..d16e7d6b56 100644 --- a/gstreamer-sharp/gstreamer-api.raw +++ b/gstreamer-sharp/gstreamer-api.raw @@ -6,7 +6,7 @@ Please DO NOT MODIFY THIS FILE, modify .metadata files instead. --> - + @@ -6174,7 +6174,7 @@ - + diff --git a/gstreamer-sharp/gstreamer-sharp.dll.config.in b/gstreamer-sharp/gstreamer-sharp.dll.config.in index c9d1031263..e8129335b8 100644 --- a/gstreamer-sharp/gstreamer-sharp.dll.config.in +++ b/gstreamer-sharp/gstreamer-sharp.dll.config.in @@ -1,5 +1,5 @@ -