Ticket #12622: recordingprofile.cpp.patch
File recordingprofile.cpp.patch, 1.3 KB (added by , 8 years ago) |
---|
-
branches/mythtv_github/devel-fixes-0.28/mythtv/mythtv/libs/libmythtv/recordingprofile.cpp
1698 1698 QString tvFormat = gCoreContext->GetSetting("TVFormat"); 1699 1699 // TODO: When mpegrecorder is remove, don't check for "HDPVR' anymore... 1700 1700 if (type != "HDPVR") 1701 #ifdef USING_V4L2 1702 if (v4l2util && v4l2util->UserAdjustableResolution()) 1701 /* this must be present to initialize the CodecParamStorage cache 1702 * and enable width/height to be used by the recorders when calling 1703 * SetIntOption(profile, "width"); 1704 * SetIntOption(profile, "height"); 1705 * In the NuppleVideoRecorder 1706 * video_buffer_size is based on those values and without 1707 this being here, it will be 0 (zero) and video_buffer_count 1708 will throw an arithmetic exception because it attempts to 1709 divide by zero. 1710 */ 1703 1711 addChild(new ImageSize(*this, tvFormat, profileName)); 1704 #endif 1712 1705 1713 videoSettings = new VideoCompressionSettings(*this, profileName, 1706 1714 v4l2util); 1707 1715 addChild(videoSettings);