@@ -50,13 +50,13 @@ public override Type GetContentType()
50
50
Playable p = Playable . Null ;
51
51
try
52
52
{
53
- p = ( ( Playable ) content ) ;
53
+ p = ( Playable ) content ;
54
54
}
55
55
catch
56
56
{
57
57
// Ignore.
58
58
}
59
- return ! p . IsValid ( ) ? null : p . GetPlayableType ( ) ;
59
+ return p . IsValid ( ) ? p . GetPlayableType ( ) : null ;
60
60
}
61
61
62
62
public override string GetContentTypeShortName ( )
@@ -73,20 +73,18 @@ public override string ToString()
73
73
74
74
sb . AppendLine ( InfoString ( "Handle" , GetContentTypeShortName ( ) ) ) ;
75
75
76
- var h = ( Playable ) content ;
77
-
78
- sb . AppendLine ( InfoString ( "IsValid" , h . IsValid ( ) ) ) ;
79
-
80
- if ( h . IsValid ( ) )
76
+ var p = ( Playable ) content ;
77
+ sb . AppendLine ( InfoString ( "IsValid" , p . IsValid ( ) ) ) ;
78
+ if ( p . IsValid ( ) )
81
79
{
82
- sb . AppendLine ( InfoString ( "IsDone" , h . IsDone ( ) ) ) ;
83
- sb . AppendLine ( InfoString ( "InputCount" , h . GetInputCount ( ) ) ) ;
84
- sb . AppendLine ( InfoString ( "OutputCount" , h . GetOutputCount ( ) ) ) ;
85
- sb . AppendLine ( InfoString ( "PlayState" , h . GetPlayState ( ) ) ) ;
86
- sb . AppendLine ( InfoString ( "Speed" , h . GetSpeed ( ) ) ) ;
87
- sb . AppendLine ( InfoString ( "Duration" , h . GetDuration ( ) ) ) ;
88
- sb . AppendLine ( InfoString ( "Time" , h . GetTime ( ) ) ) ;
89
- // sb.AppendLine(InfoString("Animation", h .animatedProperties));
80
+ sb . AppendLine ( InfoString ( "IsDone" , p . IsDone ( ) ) ) ;
81
+ sb . AppendLine ( InfoString ( "InputCount" , p . GetInputCount ( ) ) ) ;
82
+ sb . AppendLine ( InfoString ( "OutputCount" , p . GetOutputCount ( ) ) ) ;
83
+ sb . AppendLine ( InfoString ( "PlayState" , p . GetPlayState ( ) ) ) ;
84
+ sb . AppendLine ( InfoString ( "Speed" , p . GetSpeed ( ) ) ) ;
85
+ sb . AppendLine ( InfoString ( "Duration" , p . GetDuration ( ) ) ) ;
86
+ sb . AppendLine ( InfoString ( "Time" , p . GetTime ( ) ) ) ;
87
+ //sb.AppendLine(InfoString("Animation", p .animatedProperties));
90
88
}
91
89
92
90
return sb . ToString ( ) ;
@@ -102,16 +100,16 @@ public PlayableOutputNode(PlayableOutput content)
102
100
103
101
public override Type GetContentType ( )
104
102
{
105
- PlayableOutput p = PlayableOutput . Null ;
103
+ PlayableOutput po = PlayableOutput . Null ;
106
104
try
107
105
{
108
- p = ( ( PlayableOutput ) content ) ;
106
+ po = ( PlayableOutput ) content ;
109
107
}
110
108
catch
111
109
{
112
110
// Ignore.
113
111
}
114
- return ! p . IsOutputValid ( ) ? null : p . GetPlayableOutputType ( ) ;
112
+ return po . IsOutputValid ( ) ? po . GetPlayableOutputType ( ) : null ;
115
113
}
116
114
117
115
public override string GetContentTypeShortName ( )
@@ -128,9 +126,8 @@ public override string ToString()
128
126
129
127
sb . AppendLine ( InfoString ( "Handle" , GetContentTypeShortName ( ) ) ) ;
130
128
131
- var h = ( PlayableOutput ) content ;
132
-
133
- sb . AppendLine ( InfoString ( "IsValid" , h . IsOutputValid ( ) ) ) ;
129
+ var po = ( PlayableOutput ) content ;
130
+ sb . AppendLine ( InfoString ( "IsValid" , po . IsOutputValid ( ) ) ) ;
134
131
135
132
return sb . ToString ( ) ;
136
133
}
@@ -166,7 +163,7 @@ protected override IEnumerable<Node> GetChildren(Node node)
166
163
// Children are the Playable Inputs.
167
164
if ( node is PlayableNode )
168
165
return GetInputsFromPlayableNode ( ( Playable ) node . content ) ;
169
- else if ( node is PlayableOutputNode )
166
+ if ( node is PlayableOutputNode )
170
167
return GetInputsFromPlayableOutputNode ( ( PlayableOutput ) node . content ) ;
171
168
172
169
return new List < Node > ( ) ;
0 commit comments