Mercurial > pt1.oyama
comparison src/recpt1.c @ 184:dc0d3addfd18
Fix a bug that failed to DLNA streaming. cosmetic changes.
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Fri, 09 May 2014 21:30:46 +0900 |
parents | 27e5f99f8991 |
children | 7a0f498af035 |
comparison
equal
deleted
inserted
replaced
183:27e5f99f8991 | 184:dc0d3addfd18 |
---|---|
626 break; | 626 break; |
627 } | 627 } |
628 } | 628 } |
629 /* $BJ,N%BP>]0J30$r$U$k$$Mn$H$9(B */ | 629 /* $BJ,N%BP>]0J30$r$U$k$$Mn$H$9(B */ |
630 code = split_ts(data->splitter, &buf, &splitbuf); | 630 code = split_ts(data->splitter, &buf, &splitbuf); |
631 if(code == TSS_NULL) { | 631 if(code == TSS_NULL) { |
632 fprintf(stderr, "PMT reading..\n"); | 632 fprintf(stderr, "PMT reading..\n"); |
633 } else if(code != TSS_SUCCESS) { | 633 } else if(code != TSS_SUCCESS) { |
634 fprintf(stderr, "split_ts failed\n"); | 634 fprintf(stderr, "split_ts failed\n"); |
635 break; | 635 break; |
636 } | 636 } |
637 | 637 |
638 break; | 638 break; |
639 } /* while */ | 639 } /* while */ |
640 | 640 |
641 buf.size = splitbuf.buffer_size; | 641 buf.size = splitbuf.buffer_filled; |
642 buf.data = splitbuf.buffer; | 642 buf.data = splitbuf.buffer; |
643 fin: | 643 fin: |
644 pthread_mutex_unlock(&data->splitter_mutex); | 644 pthread_mutex_unlock(&data->splitter_mutex); |
645 } /* if */ | 645 } /* if */ |
646 | 646 |