Skip to content

[Fix] Put OCR specific code inside ifdef#855

Merged
cfsmp3 merged 2 commits intoCCExtractor:masterfrom
harrynull:patch-1
Dec 27, 2017
Merged

[Fix] Put OCR specific code inside ifdef#855
cfsmp3 merged 2 commits intoCCExtractor:masterfrom
harrynull:patch-1

Conversation

@harrynull
Copy link
Copy Markdown
Contributor

@harrynull harrynull commented Dec 26, 2017

Removed debug code. No idea why it causes travis fails to build

Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

My familiarity with the project is as follows (check one):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

Put debug code into ifdef to avoid failing compilation when OCR is disabled.

Removed debug code. No idea why it causes travis fails to build
sub->prev->start_time, sub->prev->end_time);
}
struct cc_bitmap* content = sub->data;
mprint("\nCurrent subtitle %x (%s)\nStart time: %lld; End time: %lld\n",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely it doesn't like this variable being declared in the middle of a block. You may want to try declaring in on top.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure. It says there is no ocr_text in cc_bitmap.
Shall we just merge the pr? cuz it's just debug code and doesn't really matter.

@saurabhshri
Copy link
Copy Markdown
Member

@harrynull Could you please check if the travis build is trying to build CCExtractor with OCR enabled or not? You can also try keeping this debugging code in an #ifdef ENABLE_OCR to see if things improve.

@harrynull
Copy link
Copy Markdown
Contributor Author

@saurabhshri That could be the reason. I did not consider that. Thanks!

@saurabhshri
Copy link
Copy Markdown
Member

@harrynull Could you also please change the title to something like "[Fix] Put OCR specific code inside ifdef" before merge?

@harrynull harrynull changed the title [FIX] Fix failing travis build. [Fix] Put OCR specific code inside ifdef Dec 26, 2017
@harrynull
Copy link
Copy Markdown
Contributor Author

@saurabhshri Done :)

@cfsmp3 cfsmp3 merged commit fb55d6d into CCExtractor:master Dec 27, 2017
hrideshmg pushed a commit to hrideshmg/ccextractor that referenced this pull request Mar 12, 2025
…onfig (CCExtractor#855)

* Delete old bot comments and repost

Signed-off-by: Tarun Arora <tarun.arora.030402@gmail.com>

* Remove role of GITHUB_BOT in config

Signed-off-by: Tarun Arora <tarun.arora.030402@gmail.com>

---------

Signed-off-by: Tarun Arora <tarun.arora.030402@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants