Commit 5e3258e5 authored by Mike Wey's avatar Mike Wey
Browse files

Fix the static array properties for LogicalChannelDescriptor.

parent 86086570
......@@ -87,7 +87,7 @@ public final class LogicalChannelDescriptor
LogicalChannel[64] arr;
for ( int i = 0; i < arr.length; i++ )
{
arr[i] = ObjectG.getDObject!(LogicalChannel)(gstMpegtsLogicalChannelDescriptor.channels[i], false);
arr[i] = ObjectG.getDObject!(LogicalChannel)(sliceDup(&(gstMpegtsLogicalChannelDescriptor.channels[i])), false);
}
return arr;
......@@ -96,14 +96,10 @@ public final class LogicalChannelDescriptor
/** Ditto */
public @property void channels(LogicalChannel[64] value)
{
GstMpegtsLogicalChannel*[64] arr;
for ( int i = 0; i < value.length; i++ )
{
arr[i] = value[i].getLogicalChannelStruct();
gstMpegtsLogicalChannelDescriptor.channels[i] = *(value[i].getLogicalChannelStruct());
}
arr[value.length] = null;
gstMpegtsLogicalChannelDescriptor.channels = arr.ptr;
}
/** */
......
Subproject commit a249d4b291fc5e5defcd01ba6c0c40bcf6d6d955
Subproject commit d5f06df74cb127d3d9378fc4d100763f346cc81d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment