Ticket #12622: recordingprofile.cpp.patch

File recordingprofile.cpp.patch, 1.3 KB (added by William L. DeRieux IV <williamderieux@…>, 8 years ago)
  • branches/mythtv_github/devel-fixes-0.28/mythtv/mythtv/libs/libmythtv/recordingprofile.cpp

     
    16981698        QString tvFormat = gCoreContext->GetSetting("TVFormat");
    16991699        // TODO: When mpegrecorder is remove, don't check for "HDPVR' anymore...
    17001700        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            */
    17031711            addChild(new ImageSize(*this, tvFormat, profileName));
    1704 #endif
     1712
    17051713        videoSettings = new VideoCompressionSettings(*this, profileName,
    17061714                                                     v4l2util);
    17071715        addChild(videoSettings);