Changeset 7866a616c in mythtv


Ignore:
Timestamp:
Feb 17, 2012, 6:57:16 AM (13 years ago)
Author:
Raymond Wagner <rwagner@…>
Branches:
devel/2020-player, devel/ffmpeg-resync, devel/gpu-commflag, fixes/0.25, fixes/0.26, fixes/0.27, fixes/0.28, fixes/29, fixes/30, fixes/31, github-templates, master
Children:
a0c9d003de
Parents:
1a2c872dc
Message:

Correct ProcessRequestQueue? leak in VideoScan::SetDirs?.

When QUERY_VIDEOS was called against the master backend, it would run
the video scanner, which would in turn pull the master backend hostname
from gCoreContext. Since that queries the value from the master
backend, it would stall, never to return, and lock the attached
ProcessRequestQueue? until the backend was restarted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mythtv/libs/libmythmetadata/videoscan.cpp

    r1a2c872dc r7866a616c  
    9191void VideoScannerThread::SetDirs(QStringList dirs)
    9292{
    93     QString master = gCoreContext->GetMasterHostName();
     93    QString master = gCoreContext->IsMasterBackend() ?
     94                            gCoreContext->GetHostName() :
     95                            gCoreContext->GetMasterHostName();
    9496    QStringList searchhosts, mdirs;
    9597    m_offlineSGHosts.clear();
Note: See TracChangeset for help on using the changeset viewer.