Skip to content

Commit

Permalink
zf
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Nov 27, 2014
1 parent 8a51299 commit ca94ff0
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/private_still/private_still_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,22 @@ namespace raspicam {

~Private_Impl_Still()
{
//std::cout << API_NAME << ": deleting camera.\n";

//mmal_connection_destroy(encoder_connection);
mmal_port_disable(camera_still_port);
mmal_component_disable (camera);

// Disable camera_video_port
if ( camera_still_port && camera_still_port->is_enabled ) {
mmal_port_disable ( camera_still_port );
camera_still_port = NULL;
}
////
// Disable all our ports that are not handled by connections
if ( camera)
mmal_component_disable ( camera);


destroy_camera_component ( camera );

//std::cout << API_NAME << ": deleting camera.\n";

//destroyCamera();
//destroyEncoder();
Expand Down

0 comments on commit ca94ff0

Please sign in to comment.