本文整理匯總了Java中org.gstreamer.lowlevel.GstNative類的典型用法代碼示例。如果您正苦於以下問題:Java GstNative類的具體用法?Java GstNative怎麽用?Java GstNative使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
GstNative類屬於org.gstreamer.lowlevel包,在下文中一共展示了GstNative類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: makeWriteable
import org.gstreamer.lowlevel.GstNative; //導入依賴的package包/類
@Test public void makeWriteable() {
Query query = new SegmentQuery(Format.TIME);
assertTrue("New query is not writable", query.isWritable());
// Bumping the ref count makes this instance non writable
GstNative.load(GstMiniObjectAPI.class).gst_mini_object_ref(query);
assertFalse("Query with multiple references should not be writable", query.isWritable());
// Now get a new reference that is writable
query = query.makeWritable();
assertTrue("Query not writable after makeWritable", query.isWritable());
}