684be9f2d4
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 decode. Outputs: * File format: MP4, MKV, AVI or OGM * Video: MPEG-4, H.264, or Theora (1 or 2 passes or constant quantizer/rate encoding) * 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
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
$NetBSD: patch-ai,v 1.1.1.1 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)
|
|
g_free(config);
|
|
// Set encoding to raw.
|
|
g_io_channel_set_encoding (ud->activity_log, NULL, NULL);
|
|
+#ifdef __NetBSD__
|
|
+ stderr->_file = pfd[1];
|
|
+ stdin->_file = pfd[0];
|
|
+#else
|
|
stderr->_fileno = pfd[1];
|
|
stdin->_fileno = pfd[0];
|
|
+#endif
|
|
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);
|
|
}
|
|
-#else
|
|
-void
|
|
-watch_volumes(signal_user_data_t *ud)
|
|
-{
|
|
-}
|
|
-#endif
|
|
|
|
// Hack to avoid a segfault in libavcodec
|
|
extern int mm_flags;
|
|
@@ -511,9 +509,7 @@ main (int argc, char *argv[])
|
|
ghb_resource_init();
|
|
ghb_load_icons();
|
|
|
|
-#if defined(__linux__)
|
|
ghb_hal_init();
|
|
-#endif
|
|
|
|
ud = g_malloc0(sizeof(signal_user_data_t));
|
|
ud->debug = ghb_debug;
|