Skip to content

Commit

Permalink
Deinitialise the clock and free more resources
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Apr 10, 2013
1 parent fbee325 commit a8e6939
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions omxplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ void SetVideoMode(int width, int height, int fpsrate, int fpsscale, FORMAT_3D_T
printf("ntsc_freq:%d %s%s\n", ntsc_freq, property.param1 == HDMI_3D_FORMAT_SBS_HALF ? "3DSBS":"", property.param1 == HDMI_3D_FORMAT_TB_HALF ? "3DTB":"");
m_BcmHost.vc_tv_hdmi_power_on_explicit_new(HDMI_MODE_HDMI, (HDMI_RES_GROUP_T)group, tv_found->code);
}
if (supported_modes)
delete[] supported_modes;
}

bool Exists(const std::string& path)
Expand Down Expand Up @@ -1156,6 +1158,10 @@ int main(int argc, char *argv[])

m_omx_reader.Close();

m_av_clock->Deinitialize();
if (m_av_clock)
delete m_av_clock;

vc_tv_show_info(0);

g_OMX.Deinitialize();
Expand Down

0 comments on commit a8e6939

Please sign in to comment.