[BACK]Return to patch-ai CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / multimedia / handbrake / patches

File: [cvs.NetBSD.org] / pkgsrc / multimedia / handbrake / patches / Attic / patch-ai (download)

Revision (vendor branch), Wed Jan 21 14:15:15 2009 UTC (11 years, 2 months ago) by jmcneill
Branch: TNF
CVS Tags: pkgsrc-base, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.1: +0 -0 lines

Import handbrake version 0.9.3.

HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video
transcoder, available for MacOS X, NetBSD, Linux and Windows.

Supported sources:
 * Any DVD-like source: VIDEO_TS folder, DVD image or real DVD
   (unencrypted--protection methods including CSS are not supported internally
   and must be handled externally with third-party software and libraries),
   and some .VOB and .TS files
 * Most any multimedia file it can get libavformat to read and libavcodec to

 * File format: MP4, MKV, AVI or OGM
 * Video: MPEG-4, H.264, or Theora (1 or 2 passes or constant quantizer/rate
 * Audio: AAC, MP3, Vorbis or AC-3 pass-through (supports encoding of several
   audio tracks)

Misc features:
 * Chapter selection
 * Basic subtitle support (burned into the picture)
 * Integrated bitrate calculator
 * Picture deinterlacing, cropping and scaling
 * Grayscale encoding

$NetBSD: patch-ai,v 2009/01/21 14:15:15 jmcneill Exp $

--- gtk/src/main.c.orig	2009-01-20 21:29:05.000000000 -0500
+++ gtk/src/main.c	2009-01-20 21:39:06.000000000 -0500
@@ -429,8 +429,13 @@ IoRedirect(signal_user_data_t *ud)
 	// Set encoding to raw.
 	g_io_channel_set_encoding (ud->activity_log, NULL, NULL);
+#ifdef __NetBSD__
+	stderr->_file = pfd[1];
+	stdin->_file = pfd[0];
 	stderr->_fileno = pfd[1];
 	stdin->_fileno = pfd[0];
 	channel = g_io_channel_unix_new (pfd[0]);
 	// I was getting an this error:
 	// "Invalid byte sequence in conversion input"
@@ -457,7 +462,6 @@ static GOptionEntry entries[] = 
 	{ NULL }
-#if defined(__linux__)
 void drive_changed_cb(GVolumeMonitor *gvm, GDrive *gd, signal_user_data_t *ud);
 //void drive_disconnected_cb(GnomeVFSVolumeMonitor *gvm, GnomeVFSDrive *gd, signal_user_data_t *ud);
@@ -470,12 +474,6 @@ watch_volumes(signal_user_data_t *ud)
 	g_signal_connect(gvm, "drive-changed", (GCallback)drive_changed_cb, ud);
 	//g_signal_connect(gvm, "drive-connected", (GCallback)drive_connected_cb, ud);
-watch_volumes(signal_user_data_t *ud)
 // Hack to avoid a segfault in libavcodec
 extern int mm_flags;
@@ -511,9 +509,7 @@ main (int argc, char *argv[])
-#if defined(__linux__)
 	ud = g_malloc0(sizeof(signal_user_data_t));
 	ud->debug = ghb_debug;