View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000532 | Cinelerra-GG | Bug | public | 2020-10-29 13:16 | 2020-11-01 20:01 |
| Reporter | mehw | Assigned To | PhyllisSmith | ||
| Priority | immediate | Severity | trivial | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux x86_64 | OS | Gentoo | OS Version | rolling |
| Fixed in Version | 2020-10 | ||||
| Summary | 0000532: compilation error: cannot convert ‘VIFrame’ to ‘VFrame*’ | ||||
| Description | Part of the error log is posted as Additional Information. A patch is attached to this post. The first problem about "cannot convert ‘VIFrame’ to ‘VFrame*’" is at dbwindow.C:392, the second problem is at dbwindow.C:421. Both the problems relate to the use of the class VIFrame (vicon.h). To return a VFrame pointer (VFrame *) via the VIFrame class, it's sufficient to return the VIFrame member vfrm. | ||||
| Steps To Reproduce | When 'cinelerra-5.1/cinelerra/dbwindow.C' is copmiled (which may depend on the configuration used) the build process exits with errors. | ||||
| Additional Information | c++ `cat x86_64/c_flags` -DMSGQUAL=dbwindow -c dbwindow.C -o x86_64/dbwindow.o dbwindow.C: In member function ‘virtual VFrame* DbWindowVIcon::frame()’: dbwindow.C:392:9: error: cannot convert ‘VIFrame’ to ‘VFrame*’ in return 392 | return *images[seq_no]; dbwindow.C: In member function ‘void DbWindowVIcon::read_frames(DbWindow::MDb*)’: dbwindow.C:421:17: error: cannot convert ‘VIFrame’ to ‘VFrame*’ in initialization 421 | VFrame *img = *vifrm; | ^~~~~~ | | | VIFrame At global scope: cc1plus: warning: unrecognized command line option ‘-Wno-unknown-warning-option’ make[2]: *** [Makefile:563: x86_64/dbwindow.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/portage/media-video/cinelerra-gg-9999/work/cinelerra-gg-9999/cinelerra-5.1/cinelerra' make[1]: *** [Makefile:528: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-video/cinelerra-gg-9999/work/cinelerra-gg-9999/cinelerra-5.1' make: *** [Makefile:484: all] Error 2 | ||||
| Tags | bug | ||||
| Attached Files | cinelerra-gg-9999-fix-VFrame-return.patch (767 bytes)
diff -Nuar a/cinelerra/dbwindow.C b/cinelerra/dbwindow.C
--- a/cinelerra/dbwindow.C 2020-10-29 04:13:31.465920793 +0100
+++ b/cinelerra/dbwindow.C 2020-10-29 04:10:25.295647739 +0100
@@ -389,7 +389,7 @@
{
if( seq_no >= images.size() )
load_frames(lbox->gui->dwindow->mdb);
- return *images[seq_no];
+ return images[seq_no]->vfrm;
}
int64_t DbWindowVIcon::set_seq_no(int64_t no)
@@ -418,7 +418,7 @@
if( frame_id < 0 ) continue;
int swidth = (SWIDTH+1) & ~1, sheight = (SHEIGHT+1) & ~1;
VIFrame *vifrm = new VIFrame(swidth, sheight, BC_YUV420P);
- VFrame *img = *vifrm;
+ VFrame *img = vifrm->vfrm;
memset(img->get_y(),0x00,swidth * sheight);
memset(img->get_u(),0x80,swidth/2 * sheight/2);
memset(img->get_v(),0x80,swidth/2 * sheight/2);
| ||||
|
|
@mehw Thank you so much for the report and patch. It has been successfully test compiled here and the patch checked into GIT |
|
|
@PhyllisSmith Thank you for your prompt response. Cheers. |
|
|
Will close after new builds. |
|
|
Great find and patch! Done. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-10-29 13:16 | mehw | New Issue | |
| 2020-10-29 13:16 | mehw | Tag Attached: bug | |
| 2020-10-29 13:16 | mehw | File Added: cinelerra-gg-9999-fix-VFrame-return.patch | |
| 2020-10-29 17:54 | PhyllisSmith | Assigned To | => PhyllisSmith |
| 2020-10-29 17:54 | PhyllisSmith | Status | new => confirmed |
| 2020-10-29 17:54 | PhyllisSmith | Note Added: 0004320 | |
| 2020-10-29 23:22 | mehw | Note Added: 0004321 | |
| 2020-10-29 23:34 | PhyllisSmith | Status | confirmed => resolved |
| 2020-10-29 23:34 | PhyllisSmith | Resolution | open => fixed |
| 2020-10-29 23:34 | PhyllisSmith | Fixed in Version | => 2020-10 |
| 2020-10-29 23:34 | PhyllisSmith | Note Added: 0004322 | |
| 2020-11-01 20:01 | PhyllisSmith | Status | resolved => closed |
| 2020-11-01 20:01 | PhyllisSmith | Note Added: 0004334 |