[mythtv] [patch] fix for bug 196

Daniel Thor Kristjansson danielk at mrl.nyu.edu
Wed Feb 2 18:53:54 UTC 2005


Since the bug had no backtrace it's hard to tell if this actually fixes 
the bug. But I believe this fixes the problem. Basically we don't check 
if GetOSD() returns NULL before using it. I added a quick check.

-- Daniel
-------------- next part --------------
Index: libs/libmythtv/udpnotify.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/udpnotify.cpp,v
retrieving revision 1.4
diff -u -r1.4 udpnotify.cpp
--- libs/libmythtv/udpnotify.cpp	7 Mar 2004 05:03:02 -0000	1.4
+++ libs/libmythtv/udpnotify.cpp	2 Feb 2005 18:48:20 -0000
@@ -353,7 +353,7 @@
             if (e.tagName() == "container")
             {
                 UDPNotifyOSDSet *container = parseContainer(e);
-                if (container)
+                if (osd && container)
                     osd->StartNotify(container, displaytime);
             }
             else


More information about the mythtv-dev mailing list