Lines 40-46
main( int argc, char** argv )
Link Here
|
40 |
} |
40 |
} |
41 |
#endif |
41 |
#endif |
42 |
|
42 |
|
43 |
const char *plugin = 0; |
43 |
const char *plugin = NULL; |
44 |
|
44 |
|
45 |
while( (plugin = visual_actor_get_next_by_name( plugin )) ) |
45 |
while( (plugin = visual_actor_get_next_by_name( plugin )) ) |
46 |
std::cout << plugin << '\n'; |
46 |
std::cout << plugin << '\n'; |
Lines 87-93
main( int argc, char** argv )
Link Here
|
87 |
FD_ZERO( &fds ); |
87 |
FD_ZERO( &fds ); |
88 |
FD_SET( sockfd, &fds ); |
88 |
FD_SET( sockfd, &fds ); |
89 |
|
89 |
|
90 |
::select( sockfd+1, &fds, 0, 0, &tv ); |
90 |
::select( sockfd+1, &fds, NULL, NULL, &tv ); |
91 |
|
91 |
|
92 |
if( FD_ISSET( sockfd, &fds) ) { |
92 |
if( FD_ISSET( sockfd, &fds) ) { |
93 |
//amaroK sent us some data |
93 |
//amaroK sent us some data |
Lines 253-259
namespace SDL
Link Here
|
253 |
visual_bin_switch_actor_by_name( Vis::bin, (char*)Vis::plugin ); |
253 |
visual_bin_switch_actor_by_name( Vis::bin, (char*)Vis::plugin ); |
254 |
SDL::unlock(); |
254 |
SDL::unlock(); |
255 |
|
255 |
|
256 |
SDL_WM_SetCaption( Vis::plugin, 0 ); |
256 |
SDL_WM_SetCaption( Vis::plugin, NULL ); |
257 |
|
257 |
|
258 |
break; |
258 |
break; |
259 |
|
259 |
|
Lines 331-337
namespace LibVisual
Link Here
|
331 |
bin = visual_bin_new (); |
331 |
bin = visual_bin_new (); |
332 |
depth = visual_video_depth_enum_from_value( 24 ); |
332 |
depth = visual_video_depth_enum_from_value( 24 ); |
333 |
|
333 |
|
334 |
if( !plugin ) plugin = visual_actor_get_next_by_name( 0 ); |
334 |
if( !plugin ) plugin = visual_actor_get_next_by_name( NULL ); |
335 |
if( !plugin ) exit( "Actor plugin not found!" ); |
335 |
if( !plugin ) exit( "Actor plugin not found!" ); |
336 |
|
336 |
|
337 |
visual_bin_set_supported_depth( bin, VISUAL_VIDEO_DEPTH_ALL ); |
337 |
visual_bin_set_supported_depth( bin, VISUAL_VIDEO_DEPTH_ALL ); |
Lines 343-349
namespace LibVisual
Link Here
|
343 |
|
343 |
|
344 |
if( visual_bin_set_video( bin, video ) ) exit( "Cannot set video" ); |
344 |
if( visual_bin_set_video( bin, video ) ) exit( "Cannot set video" ); |
345 |
|
345 |
|
346 |
visual_bin_connect_by_names( bin, (char*)plugin, 0 ); |
346 |
visual_bin_connect_by_names( bin, (char*)plugin, NULL ); |
347 |
|
347 |
|
348 |
if( visual_bin_get_depth( bin ) == VISUAL_VIDEO_DEPTH_GL ) |
348 |
if( visual_bin_get_depth( bin ) == VISUAL_VIDEO_DEPTH_GL ) |
349 |
{ |
349 |
{ |