Opened 20 years ago
Closed 20 years ago
#1430 closed defect (fixed)
couple of compile warnings - patch included
| Reported by: | Owned by: | Geoffrey Hausheer | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Just a trivial patch to eitfixup.cpp, I'm no master coder, but it looks like someone has used a '!=' when meaning to use a '= !'. Patch below fixes the compile warning (gcc 4.0.1/fedora), but I'm not sure if I've screwed the logic up or anything.
Index: eitfixup.cpp
===================================================================
--- eitfixup.cpp (revision 9234)
+++ eitfixup.cpp (working copy)
@@ -290,13 +290,13 @@
// the description as we might destroy other useful information
captures = tmpUKCC.capturedTexts();
for (it = captures.begin(); it != captures.end(); ++it)
- event.SubTitled != (*it == "S");
+ event.SubTitled = !(*it == "S");
}
else if ((position = tmpUKCC.search(event.Event_Subtitle)) != -1)
{
captures = tmpUKCC.capturedTexts();
for (it = captures.begin(); it != captures.end(); ++it)
- event.SubTitled != (*it == "S");
+ event.SubTitled = !(*it == "S");
// We remove [AD,S] from the subtitle.
QString stmp = event.Event_Subtitle;
Change History (4)
comment:1 by , 20 years ago
| Summary: | compile warnings in eitfixup.cpp - patch included → couple of compile warnings - patch included |
|---|
comment:2 by , 20 years ago
and also in :
Index: programs/mythtranscode/mpeg2fix.cpp
===================================================================
--- programs/mythtranscode/mpeg2fix.cpp (revision 9234)
+++ programs/mythtranscode/mpeg2fix.cpp (working copy)
@@ -1853,7 +1853,7 @@
PTSdiscrep = 0;
break;
}
- if (tmpPTSdiscrep != AV_NOPTS_VALUE &&
+ if (tmpPTSdiscrep != (int64_t)AV_NOPTS_VALUE &&
tmpPTSdiscrep != PTSdiscrep)
PTSdiscrep = tmpPTSdiscrep;
}
comment:3 by , 20 years ago
| Owner: | changed from to |
|---|
The original eitfixup line isn't even in the code anymore. Assigning this ticket to ghaushe to see if this is how he'd prefer to fix the other warnings in mpeg2fix code.
Note:
See TracTickets
for help on using tickets.

a warning is also generated by unsigned->signed comparison in :
Index: programs/mythtranscode/replex/ringbuffer.c =================================================================== --- programs/mythtranscode/replex/ringbuffer.c (revision 9234) +++ programs/mythtranscode/replex/ringbuffer.c (working copy) @@ -49,7 +49,7 @@ int ring_reinit (ringbuffer *rbuf, int size) { - if (size > rbuf->size) { + if ((unsigned int)size > rbuf->size) { uint8_t *tmpalloc = (uint8_t *) realloc(rbuf->buffer, sizeof(uint8_t)*size); if (! tmpalloc)