summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-07-04Use calloc to allocate the lists of audio and video ports.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : T6%E7%60%7F%D4%60%C8l4%9AX%97%86hrR%AD%13%C0
2008-07-04Use calloc to allocate the memory area for the YUV planes.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %00%23%8FM%AA%B88C%FEA%7E%2C%D3%F5%29%8F%28%AC%D7_
2008-07-03Rewrite demux_real and demux_realaudio for style.Diego 'Flameeyes' Pettenò
Also try to simplify frame buffer allocation. --HG-- extra : transplant_source : %B6%B5o%A8%24%E1%F5B%D2%D8%08%F8%DE%E7%9E%B6%B8C%A4j
2008-07-02Build fix for external ffmpegChris Rankin
2008-07-02Don't segfault when the user requests an input the card doesn't posess.Simon Farnsworth
2008-07-02provide PTHREAD_CFLAGS when neededMatthias Ringwald
2008-06-27Add basic aspect ratio detection for WMV streams.Darren Salt
2008-06-25Merge, and add a changelog entry.Darren Salt
2008-06-25Add comments about (audio track)->type containing the stream no.Darren Salt
2008-06-25Backed out changeset f2086511a349; m->type isn't necessarily 0.Darren Salt
2008-06-05demux_ts: don't OR in buffer types.Darren Salt
2008-05-25Recognise TS descriptor tag 0x80 as MPEG video.Darren Salt
2008-05-25Wherever possible, use enum constants for TS descriptor tags.Darren Salt
2008-05-23Remove MIN/MAX macro definitions on unit.Diego 'Flameeyes' Pettenò
Now that the macro are either imported from the system or defined by configure. don't define them in every source file.
2008-05-23Mark initialisation functions with malloc attribute.Diego 'Flameeyes' Pettenò
All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call.
2008-05-20Make xine_mm_accel() appear like a constant function.Diego 'Flameeyes' Pettenò
Its result will be always the same during execution, as it depends on the hardware present. --HG-- extra : transplant_source : %F2%D1%1A%84%0F%D4%08%C0%12%09%1A%BBb%7Ef%CC%F2%FB%A3t
2008-05-20Add check for const attribute (for mathematical functions).Diego 'Flameeyes' Pettenò
Add CC_ATTRIBUTE_CONST macro to the attributes.h. Run CC_ATTRIBUTE_CONST in configure. Define SUPPORT_ATTRIBUTE_CONST for GCC 3. Define XINE_CONST to __attribute__((__const__)) if supported. --HG-- extra : transplant_source : /26%26%DF%C0%3C%AC%27%5C%B7%B1y%FEQ%8Ay%EE%F1%BD
2008-05-22Merge fix for 3466031414a7.Diego 'Flameeyes' Pettenò
2008-05-22Copy all of the supported types not just 1/4 of it (4 being the size of ↵Diego 'Flameeyes' Pettenò
uint32_t).
2008-05-22Merge.Darren Salt
2008-05-22Merge.Darren Salt
2008-05-22Fix w32dll build failure.Darren Salt
2008-05-21Fix typo that lead to crash.Diego 'Flameeyes' Pettenò
2008-05-12Provide xine_get_current_frame_data which passes more data via a structure.Reinhard Nißl
The new structure xine_current_frame_data_t additionally contains cropping and interlacing information, which both are required for proper conversion of the image. The existing functions have been adopted to use the code of the new function. The changeset should be ABI compatible.
2008-05-09Use size_t to keep the value returned by strlen().Diego 'Flameeyes' Pettenò
When using a variable to store the result of strlen(), make sure its type is size_t just like the function returns, rather than using a smaller type like int. --HG-- extra : transplant_source : %B0%D5%3B%D7%1Dy%0A%7E%7D%7C%023%08%B2%CE%D3t%0B3%D7
2008-05-09Rewrite and optimise xine_get_{file_extensions,mime_types}()Diego 'Flameeyes' Pettenò
Rewrite xine_get_file_extensions() and xine_get_mime_types() so that they share the joining code, and do one less loop over the list of plugins. Create a new _x_concatenate_with_string() function to convert an array of strings into a single string, which is called by both functions. --HG-- extra : transplant_source : %BC7%3D%C7%A5%AA%A6%BB%11%9A%94%F0%E9%F1V%B7%29%C68h
2008-05-09Don't use temporary for setting title data, initialise structs on declaration.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %CE%27_Nt%C7%7E%C3%0Db3%CF%D5O%BA%1C%21%D3%93%1E
2008-05-09Use snprintf() return value rather than calling strlen() multiple times.Diego 'Flameeyes' Pettenò
Instead of using strlen() to get the new size of the string every time, use the value returned by snprintf() to gather the size of the final string. --HG-- extra : transplant_source : %AA%0D%D3d9%D6%99%D7BP%21w%F3%DE%8Au%90l%AD%16
2008-05-09Initialise the xine_event_t instance directly on declaration.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %3B%87%DA%89%F2.%1F%F4%F0L/%C4%A3%5B%5C3%1A%09%05g
2008-05-09Use xine_ui_data_t's array rather than creating a temporary.Diego 'Flameeyes' Pettenò
Instead of passing through a temporary ui_title array on the stack, use the array already allocated for the xine_ui_data_t element. Also do that for ui_str_length. --HG-- extra : transplant_source : %1A%B5e%8E%C0gQ%A9%BC%08%B2%0Bm%A9Ec%C1%9F%23%EF
2008-05-09Avoid 1KB buffer for decoding anxdata headers.Diego 'Flameeyes' Pettenò
Instead of using a 1KB buffer to copy over the Content-Type header value to compare it, get a (pointer, length) pair and use that for comparison. This should also allow the compiler to inline the decode_anxdata_header() function. --HG-- extra : transplant_source : W%EE%5CN%BD%B8%8C%FA%CD%15p%CD%A5%CBQ%1E%893%97S
2008-05-09Don't use t_title array after it got out of the scope.Diego 'Flameeyes' Pettenò
In update_chapter_display() the t_title array, declared on the buffer, is used after it has disappeared from the scope. Instead of doing that, use directly the xine_ui_data_t array. Declare xine_event_t and xine_ui_data_t with their values directly, makes it more explicit that everything disappears at the end of the function. --HG-- extra : transplant_source : %25T%10eEd%CF%ECS%AC%A3%E3%E0%D3J%F6%A5%15%9EE
2008-05-09Merge.Darren Salt
2008-05-09Merge.Darren Salt
2008-05-09Fix compilation failure (capitalisation).Darren Salt
2008-05-09Fix compilation failure (extra "(").Darren Salt
2008-05-09Use asprintf() rather than sn?printf() + strn?dup().Diego 'Flameeyes' Pettenò
Instead of duplicating a buffer after using sn?printf() on it, use asprintf() directly on the final variable.
2008-05-09Use size_t rather than int to store the return value of strlen().Diego 'Flameeyes' Pettenò
2008-05-09Use asprintf() rather than malloc() + snprintf().Diego 'Flameeyes' Pettenò
2008-05-09Use size_t rather than int to store the return value of strlen().Diego 'Flameeyes' Pettenò
Also, reduce visibility of the i variable to the loop where it is used.
2008-05-09Use size_t rather than int to store the return value of strlen().Diego 'Flameeyes' Pettenò
Also, don't reset buffers when we're just going to run a snprintf() call, and avoid multiple calls to strlen() when we're appending to it.
2008-05-09Avoid loop for common memory operations (zeroing, copying, moving).Diego 'Flameeyes' Pettenò
Use the proper function for common memory operations (memset() for zeroing, memcpy() for copying, memmove() for moving), instead of looping through arrays. By extension, remove loops to reset arrays when they were allocated with calloc() and thus already zeroed.
2008-05-09Avoid transforming a string to uppecase, and avoid one call to strlen().Diego 'Flameeyes' Pettenò
Instead of looping through the directive string as returned by sscanf() and transforming each character to its uppercase version, use strcasestr to run a case-insensitive sub-string search. Also avoid runing multiple strlen() calls per each line, use strncpy instead.
2008-05-09Loop improvements, avoid multiple strlen() and strdup() calls.Diego 'Flameeyes' Pettenò
Instead of executing strlen() after each snprintf() call, use the value returned by the call itself. Instead of using sprintf() on a buffer and then duplicate it, use asprintf().
2008-05-09Remove a new bunch of xine_malloc() calls.Diego 'Flameeyes' Pettenò
Also don't reset memory after it's allocated if we do that with calloc.
2008-05-09Cleanup handling of packed attribute.Diego 'Flameeyes' Pettenò
- Add a configure test for the attribute, during xine build process. - Define the attribute as supported when using GCC 2.95 or later outside xine build process. - Use the new XINE_PACKED define instead of the attribute directly. - Check for SUPPORT_ATTRIBUTE_PACKED rather than doing strange subdefines.
2008-05-07Avoid memset() on newly allocated memory areas.Diego 'Flameeyes' Pettenò
If needed, use calloc() to allocate the area so that it's already reset by the time it returns.
2008-05-07Don't overuse sscanf().Diego 'Flameeyes' Pettenò
Instead of using sscanf() to get the data out of headers, as we just compared them, skip the name of the header and get the rest. Add the whitespace to the compare so that it actually works as intended. Also save some unneeded dup/free.
2008-05-07Include config.hDiego 'Flameeyes' Pettenò
2008-05-07Again, use asprintf() rather than malloc()+sprintf().Diego 'Flameeyes' Pettenò