I don't really see how this can happen, but it should fix it.
Close #13190
void MainInterface::resumePlayback()
{
- var_SetTime( THEMIM->getInput(), "time", i_resumeTime );
+ if( THEMIM->getIM()->hasInput() ) {
+ var_SetTime( THEMIM->getInput(), "time", i_resumeTime );
+ }
hideResumePanel();
}
ddsd.dwSize = sizeof(ddsd);
ddsd.ddpfPixelFormat.dwSize = sizeof(ddsd.ddpfPixelFormat);
ddsd.dwFlags = DDSD_HEIGHT | DDSD_WIDTH;
- ddsd.dwWidth = fmt->i_visible_width;
- ddsd.dwHeight = fmt->i_visible_height;
+ ddsd.dwWidth = fmt->i_width;
+ ddsd.dwHeight = fmt->i_height;
if (fourcc) {
ddsd.dwFlags |= DDSD_PIXELFORMAT;
ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC;