Skip to content

Commit

Permalink
release raspistill camera
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Nov 27, 2014
1 parent 9d874b9 commit 9a4ac01
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/private_still/private_still_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,16 @@ namespace raspicam {

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

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

destroyCamera();
destroyEncoder();
mmal_connection_destroy(encoder_connection);
std::cout << API_NAME << ": end deleting camera.\n";

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

int initialize();
Expand Down

0 comments on commit 9a4ac01

Please sign in to comment.