From: Sebastian Dröge Date: Tue, 23 Jun 2009 11:21:06 +0000 (+0200) Subject: Make some element methods protected as they should be X-Git-Tag: 1.19.3~483^2~472 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58c9aeb8a6a2aadc932d07f8abb4b8d46c11b223;p=platform%2Fupstream%2Fgstreamer.git Make some element methods protected as they should be --- diff --git a/gstreamer-sharp/Element.custom b/gstreamer-sharp/Element.custom index a2243926d5..3b75de765b 100644 --- a/gstreamer-sharp/Element.custom +++ b/gstreamer-sharp/Element.custom @@ -3,7 +3,7 @@ static extern IntPtr g_object_ref (IntPtr raw); [DllImport("libgstreamer-0.10.dll") ] static extern bool gst_element_add_pad (IntPtr raw, IntPtr pad); -public bool AddPad (Pad p) { +protected bool AddPad (Pad p) { bool ret = gst_element_add_pad (this.Handle, p == null ? IntPtr.Zero : p.Handle); if (ret) g_object_ref (p.Handle); @@ -35,14 +35,14 @@ static extern void gst_element_found_tags (IntPtr raw, IntPtr list); [DllImport("libgstreamer-0.10.dll") ] static extern IntPtr gst_tag_list_copy (IntPtr raw); -public void FoundTags (Gst.TagList list) { +protected void FoundTags (Gst.TagList list) { gst_element_found_tags (Handle, list == null ? IntPtr.Zero : gst_tag_list_copy (list.Handle)); } [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) { +protected 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)); } diff --git a/gstreamer-sharp/Gstreamer.metadata b/gstreamer-sharp/Gstreamer.metadata index b03a9629d1..c00c6b2ca6 100644 --- a/gstreamer-sharp/Gstreamer.metadata +++ b/gstreamer-sharp/Gstreamer.metadata @@ -291,6 +291,7 @@ 1 1 true + protected true Seek @@ -299,6 +300,9 @@ GetPads GetSrcPads GetSinkPads + protected + protected + protected 1